xcode 打印数据不完整,只打印了一半

来源:互联网 发布:网络销售总监 编辑:程序博客网 时间:2024/04/26 07:18

创建一个宏 把这段代码粘上去 在使用的地方调用就可以了

#ifdef DEBUG#define NSLog(FORMAT, ...) fprintf(stderr, "%s:%zd\t%s\n", [[[NSString stringWithUTF8String: __FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat: FORMAT, ## __VA_ARGS__] UTF8String]);#else#define NSLog(FORMAT, ...) nil#endif
0 0
原创粉丝点击