1、Exception Breakpoint 异常断点
使用场景:高效率打印变量或表达式,注意不能打在结束}的前一个语句
此时断点是无效的

有效断点

2、NSLog增强版
使用场景:一个程序经常打印日志
//DEBUG 模式下打印日志,函数名,当前行,比较好用的 log宏
#ifdef DEBUG
# define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
# define DLog(...)
#endif

3、debugger command 打印信息
使用场景:debug打印某个对象或者基本数据,注意不能打在结束}的前一个语句,否则直接跳到结束

网友评论