
1. 常用命令

- (lldb) thread step-over // The same as "next" or "n" in GDB.
- (lldb) thread step-in // The same as "step" or "s" in GDB.
- (lldb) thread step-out // The same as "finish" or "f" in GDB.
- (lldb) thread step-inst // The same as "stepi" / "si" in GDB. 没什么用
- (lldb) thread step-over-inst // The same as "nexti" / "ni" in GDB. 没什么用

- thread return @"xxxxx" :很重要,可以直接return想要的东西


- po: 输出对象类型的, 实际上是调用了OC的description方法
- p = print : 输出基本数据类型




2. 用控制台来改变窗口的颜色



3 线程的状态
- 当进程停止后, lldb会停留在当前线程的当前帧(frame)上面






3 给lldb安装个facebook出品的chisel插件
brew update
brew install chise
if .lldbinit
file doesn't exist you can create it & open it by tapping on the terminal
touch .lldbinit
open .lldbinit
Then add the following line to your ~/.lldbinit
file.
# ~/.lldbinit
command script import /usr/local/opt/chisel/libexec/fblldb.py
The commands will be available the next time Xcode
starts.
网友评论