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

2020-10-26  本文已影响0人  iOS_Programmer

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

#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

上一篇 下一篇

猜你喜欢

热点阅读