ios 开发

常用LLDB命令

2023-01-10  本文已影响0人  iOS小洁

LLDB指令格式

<command> [<subcommand> [<subcommand>...]] <action> [-options [optionvalue]] [argument [argument...]]

如给test函数设置断点 breakpoint set -n test

help <command>

expression <cmd-options> -- <expr>

thread backtrace

thread return []

Frame variable []

thread continue̵、continue̵c 、c

thread step-over、next、n

thread step-in、 step、s

单步运行,遇到子函数会进入子函数

thread step-out、finish

直接执行完当前函数的所有代码,返回到上一个函数

thread step-inst-over、 nexti、 ni

thread step-inst、stepi、 si

si、ni和s、n类似

breakpoint set

breakpoint list

列出所有的断点(每个断点都有自己的编号)

breakpoint disable 断点编号

禁用断点.

breakpoint enable 断点编号

启用断点

breakpoint delete 断点编号

删除断点

breakpoint command add 断点编号

给断点预先设置需要执行的命令,到触发断点时,就会按顺序执行

breakpoint command list 断点编号

查看某个断点设置的命令

breakpoint command delete 断点编号

删除某个断点设置的命令

内存断点

image lookup

image list

小技巧

上一篇 下一篇

猜你喜欢

热点阅读