您的位置:首页 > 其它

设置DEBUG模式

2016-03-30 12:31 155 查看
一、building setting ---> Apple LLVM 7.0 Preprocessing------->Debug 输入:DEBUG = 1

二、Product—> scheme  ——>   edit scheme    

三、常用宏

#ifdef DEBUG

#define LMLog(...) NSLog (@"%s -> Line:%d -> %@",__func__,__LINE__,[NSString stringWithFormat:__VA_ARGS__])

#else

#define LMLog(...)

#endif
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  设置DEBUG模式