断点
-
设置断点
$breakpoint set -n funcName
set 是子命令
-n 是选项 是–name 的缩写 -
查看断点列表
$breakpoint list -
删除
$breakpoint delete 组号 -
禁用/启用
$breakpoint disable 禁用
$breakpoint enable 启用 -
遍历整个项目中满足Game:这个字符的所有方法
$breakpoint set -r Game:
流程控制
- 继续执行
$continue c - 单步运行,将子函数当做整体一步执行
$n next - 单步运行,遇到子函数会进去
$s //single step - 断点上下文查看
$up/down - 断点回滚
$thread return
$watchpoint set variable p1->_name
$frame variable
$p &p1->_name
$watchpoint set expression 0x60000073bb60(address of property name)
$(lldb) break command add 1
Enter your debugger command(s). Type 'DONE' to end.
> po self
> p self.view
> DONE
stop-hook
让你在每次stop的时候,对breakpoint,watchpoin