完美解决Xcode8.0之后版本NSLog打印输出不全
2016-12-02 11:16
555 查看
/**
* 完美解决Xcode NSLog打印不全的宏 亲测目前支持到8.2bate版
*/
#ifdef DEBUG
//#define NSLog(format, ...) printf("class: <%p %s:(%d) > method: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __PRETTY_FUNCTION__, [[NSString stringWithFormat:(format),
##__VA_ARGS__] UTF8String] )
#define NSLog(...) printf("%f %s\n",[[NSDate date]timeIntervalSince1970],[[NSString stringWithFormat:__VA_ARGS__]UTF8String]);
#else
#define NSLog(format, ...)
#endif
* 完美解决Xcode NSLog打印不全的宏 亲测目前支持到8.2bate版
*/
#ifdef DEBUG
//#define NSLog(format, ...) printf("class: <%p %s:(%d) > method: %s \n%s\n", self, [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, __PRETTY_FUNCTION__, [[NSString stringWithFormat:(format),
##__VA_ARGS__] UTF8String] )
#define NSLog(...) printf("%f %s\n",[[NSDate date]timeIntervalSince1970],[[NSString stringWithFormat:__VA_ARGS__]UTF8String]);
#else
#define NSLog(format, ...)
#endif
相关文章推荐
- Xcode4.3.2真机调试NSLog无法输出中文的解决方法
- xcode ios调试 NSLog没有输出 控制台没有输出解决
- Xcode4.3.2真机调试NSLog无法输出中文的解决方法
- xcode 4.3版本 在连接上ipad后,程序用nslog不显示中文的解决办法
- Xcode4.3.2真机调试NSLog无法输出中文的解决方法
- Xcode中调试信息不全,NSLog不打印问题
- Xcode8 NSLog打印json不全解决办法
- iOS开发解决低版本的Xcode不能打开xcode8.0
- Xcode 4.3+ NSLog中文不输出Bug及解决方法
- SVN版本更新后,upData工程之后,Xcode 工程文件打不开解决办法
- 解决低版本的xcode不能打开xcode8.0
- Xcode8打印一堆日志、iOS10真机NSLog输出无效解决办法
- Xcode 4.3+ NSLog中文不输出Bug及解决方法
- iOS 解决NSlog打印输出的的文字都是UTF-8格式
- Xcode8打印一堆日志、iOS10真机NSLog输出无效解决办法
- 解决低版本的xcode不能打开xcode8.0
- Xcode 4.3+ NSLog中文不输出Bug及解决方法
- Xcode4.3.2真机调试NSLog无法输出中文的解决方法
- xcode 4.3版本 在连接上ipad后,程序用nslog不显示中文的解决办法
- Xcode 8.0 控制台打印问题解决办法