LLDB常用调试命令

139 阅读1分钟
  • 启动程序
process launch
run
r
  • 跳过断点
thread continue
c
thread step-out
  • 单步执行
thread step-in
  • 查看变量
p
print 
po
  • 线程列表
thread list
  • 查看调用栈
thread backtrace
bt
  • 修改
expression
e
  • 调用方法
在调试时,想要额外调用一下某个方法,可以使用call命令
call [self callMethod]

参考