LLDB 常用的调试命令

1: expression

2:  call 功能与expression 基本一样

3: po 输出对象 p 输出基本数据类型

4:memery write 内存地址 数组

5:memery read/数量_格式_字节数 内存地址 | x/数量_格式_字节数 内存地址

6:断点命令 bt,  br list

7:  内存断点 watchpoint set variable xxx | watchpoint set expression xxx

8: 动态注入代码逻辑 如:breacpoint set -one-shot ture --name " xxx "

9: masnary 查找约束冲突的视图

e id $myVi = (id)0x7ffa9d51a8b0 // 出现冲突的视图地址
e (void)[$myVi setBackgroundColor:[UIColor redColor]] // 设置背景色
e (void)[CATransaction flush] // 执行

https://www.jianshu.com/p/17600324656a

https://github.com/ming1016/study/wiki/Xcode%E8%B0%83%E8%AF%95%E4%B9%8BLLDB

猜你喜欢

转载自www.cnblogs.com/jisa/p/11287286.html