美文网首页
lldb常见命令

lldb常见命令

作者: 金抽抽o | 来源:发表于2017-08-17 17:40 被阅读0次

官方文档

运行进程

run

启动钱设置环境变量

env DEBUG=1
set rem target.env-vars DEBUG取消刚才的设置
process launch -v DEBUG=1设置环境变量然后重新launch

单点调试下一步

n Do a source levelsingle step over in the currently selected thread.
s Do a source level single step in the currently selected thread.
niDo aninstruction levelsingle step over in the currently selected thread.
siDo an instruction levelsingle step in the currently selected thread.
finishStep out of the currently selected frame.

断点命令

b main Set a breakpoint at all functions named main.
b -[NSString stringWithFormat:] Set a breakpoint at and object C function: -[NSString stringWithFormat:].
br s -S count Set a breakpoint at all Objective C methods whose selector is count.
br list List all breakpoints.
br del 1

查看变量

frame variable/ fr v查看当前区域的参数和所以变量
fr v -a查看当前区域的变量
p bar查看变量bar的值
target variable 查看所以全局、静态变量在当前文件里面

执行表达式

expression tf.backgroundColor = UIColor.red
expression value.a = 100
expr unsigned int $foo = 5

查看线程状态

thread list
thread select 1
t 1选择线程1作为后续命令的执行线程
bt 当前线程堆栈
bt all 所以线程堆栈
frame info当前区域信息
register read当前线程的通用寄存器

相关文章

  • lldb常见命令

    官方文档 运行进程 run 启动钱设置环境变量 env DEBUG=1set rem target.env-var...

  • LLDB 使用

    LLDB 使用 LLDB(Low Lever Debug)命令结构 其中: (命令)和 (子命令):LLDB调试命...

  • LLDB使用总结

    简略命令请点击LLDB命令总结 安装命令集合工具 1、Chisel安装教程常见问题: 解决方案的链接2、Derek...

  • iOS LLDB调试

    掌握以下lldb命令,够用. ### LLDB调试总结 eNSString*$str=@"test"...

  • GDB 与 LLDB 命令对照表,非常棒

    GDB与LLDB命令对照表 GDB 与 LLDB 命令对照表1GDB 与 LLDB 命令对照表2 设置观察点 观察...

  • iOS逆向006--LLDB(Low Lever Debug)

    Debug 命令 LLDB:Low Lever Debug( 轻量级Debug) (lldb)//--------...

  • LLDB 调试技巧集合

    LLDB是个开源的内置于XCode的调试工具,这里整理了一下开发过程中的常见用法。lldb对于命令的简称,是头部匹...

  • LLDB扩展库chisel

    lldb最基本的命令help 可以查看所有lldb命令,通过help command 可以查看该命令的作用和使用s...

  • LLDB

    lldb与gdb命令名的对照表:http://lldb.llvm.org/lldb-gdb.html

  • 逆向(四) 常见的LLDB 命令

    之前有写过 Xcode动态调试原理 其中会涉及到使用LLDB命令, 今天有时间可以总结一些常用的LLDB命令,可以...

网友评论

      本文标题:lldb常见命令

      本文链接:https://www.haomeiwen.com/subject/krxjqxtx.html