單步調(diào)試
以下都是 thread 命令的別名
-
s
(step-in) 源碼級別 -
si
(step-in) 指令級別 -
n
(step-over) 源碼級別 -
ni
(setop-over) 指令級別 -
finish
跳出當(dāng)前的 frame -
return $val
返回并制定返回值
斷點
breakpoint(br)
設(shè)置斷點動作
br command add
別名
command alias dt_ioc breakpoint set -n dtrace_ioctl
# 別名后面的命令要用全稱擎宝,這個設(shè)置可以放到 ~/.lldbinit