XCode调试LLDB

XCode版本:9.2 (9C40b)

  • apropos
    -- List debugger commands related to a word or subject.
    列出与单词或主题相关的调试器命令。

  • breakpoint
    -- Commands for operating on breakpoints (see 'help b' for
    shorthand.)
    在断点上运行的命令(参见'help b'速记。)

  • bugreport
    -- Commands for creating domain-specific bug reports.
    用于创建特定于域的错误报告的命令。

  • command
    -- Commands for managing custom LLDB commands.
    用于管理自定义LLDB命令的命令。

  • disassemble
    -- Disassemble specified instructions in the current
    target. Defaults to the current function for the
    current thread and stack frame.
    拆解当前的指定说明目标。默认为当前的函数当前线程和堆栈帧。

  • expression
    -- Evaluate an expression on the current thread. Displays
    any returned value with LLDB's default formatting.
    评估当前线程上的表达式。显示器任何返回值与LLDB的默认格式。

  • frame
    -- Commands for selecting and examing the current thread's
    stack frames.
    选择和检查当前线程的命令堆栈帧。

  • gdb-remote
    -- Connect to a process via remote GDB server. If no host
    is specifed, localhost is assumed.
    通过远程GDB服务器连接到进程。如果没有主机被指定,localhost被假定。

  • gui
    -- Switch into the curses based GUI mode.
    切换到基于curses的GUI模式。

  • help
    -- Show a list of all debugger commands, or give details
    about a specific command.
    显示所有调试器命令的列表,或者提供详细信息关于一个特定的命令。

  • kdp-remote
    -- Connect to a process via remote KDP server. If no UDP
    port is specified, port 41139 is assumed.
    通过远程KDP服务器连接到进程。如果没有UDP端口被指定,端口41139被假定。

  • language
    -- Commands specific to a source language.
    特定于源语言的命令。

  • log
    -- Commands controlling LLDB internal logging.
    控制LLDB内部记录的命令。

  • memory
    -- Commands for operating on memory in the current target
    process.
    用于在当前目标中对内存进行操作的命令处理。

  • platform
    -- Commands to manage and create platforms.
    管理和创建平台的命令。

  • plugin
    -- Commands for managing LLDB plugins.
    管理LLDB插件的命令。

  • process
    -- Commands for interacting with processes on the current
    platform.
    与当前进程交互的命令平台。

  • quit
    -- Quit the LLDB debugger.
    退出LLDB调试器。

  • register
    -- Commands to access registers for the current thread and
    stack frame.
    访问当前线程和寄存器的命令堆栈框架。

  • script
    -- Invoke the script interpreter with provided code and
    display any results. Start the interactive interpreter
    if no code is supplied.
    用提供的代码和调用脚本解释器显示任何结果。启动交互式解释器如果没有代码提供。

  • settings
    -- Commands for managing LLDB settings.
    用于管理LLDB设置的命令。

  • source
    -- Commands for examining source code described by debug
    information for the current target process.
    检查由调试描述的源代码的命令当前目标进程的信息。

  • target
    -- Commands for operating on debugger targets.
    用于在调试器目标上运行的命令。

  • thread
    -- Commands for operating on one or more threads in the
    current process.
    在一个或多个线程上运行的命令当前进程。

  • type
    -- Commands for operating on the type system.
    在类型系统上运行的命令。

  • version
    -- Show the LLDB debugger version.
    显示LLDB调试器版本。

  • watchpoint
    -- Commands for operating on watchpoints.
    用于在观察点上操作的命令。

Current command abbreviations (type 'help command alias' for more info):
当前命令缩写(更多信息请输入“help command alias”)

  • add-dsym
    -- Add a debug symbol file to one of the target's current modules
    by specifying a path to a debug symbols file, or using the
    options to specify a module to download symbols for.
    将调试符号文件添加到目标的当前模块之一 通过指定调试符号文件的路径,或使用选项来指定一个模块下载符号。

  • attach
    -- Attach to process by ID or name.
    通过ID或名称附加到进程。

  • b
    -- Set a breakpoint using one of several shorthand formats.
    使用几种简写格式之一来设置断点。

  • bt
    -- Show the current thread's call stack. Any numeric argument
    displays at most that many frames. The argument 'all' displays
    all threads.
    显示当前线程的调用堆栈。任何数字参数最多显示多个帧。显示“全部”参数所有线程。

  • c
    -- Continue execution of all threads in the current process.
    继续执行当前进程中的所有线程。

  • call
    -- Evaluate an expression on the current thread. Displays any
    returned value with LLDB's default formatting.
    在当前线程上评估一个表达式。显示任何
    以LLDB的默认格式返回值。

  • continue
    -- Continue execution of all threads in the current process.
    继续执行当前进程中的所有线程。

  • detach
    -- Detach from the current target process.
    从当前目标进程中分离出来。

  • di
    -- Disassemble specified instructions in the current target.
    Defaults to the current function for the current thread and
    stack frame.
    反汇编当前目标中的指定指令。默认为当前线程的当前函数堆栈框架。

  • dis
    -- Disassemble specified instructions in the current target.
    Defaults to the current function for the current thread and
    stack frame.
    反汇编当前目标中的指定指令。默认为当前线程的当前函数堆栈框架。

  • display
    -- Evaluate an expression at every stop (see 'help target
    stop-hook'.)
    在每一站评估表达(请参阅“帮助目标”停止挂机”。)

  • down
    -- Select a newer stack frame. Defaults to moving one frame, a
    numeric argument can specify an arbitrary number.
    选择一个较新的堆栈帧。默认移动一帧,a数字参数可以指定任意数字。

  • env
    -- Shorthand for viewing and setting environment variables.
    查看和设置环境变量的简写。

  • exit
    -- Quit the LLDB debugger.
    退出LLDB调试器。

  • f
    -- Select the current stack frame by index from within the current
    thread (see 'thread backtrace'.)
    从当前的索引中选择当前的堆栈帧线程(请参阅“线程回溯”)。

  • file
    -- Create a target using the argument as the main executable.
    使用参数作为主要的可执行文件创建一个目标。

  • finish
    -- Finish executing the current stack frame and stop after
    returning. Defaults to current thread unless specified.
    完成当前堆栈帧的执行并停止返回。除非指定,否则默认为当前线程。

  • image
    -- Commands for accessing information for one or more target
    modules.
    用于访问一个或多个目标的信息的命令模块。

  • j
    -- Set the program counter to a new address.
    将程序计数器设置为新地址。

  • jump
    -- Set the program counter to a new address.
    将程序计数器设置为新地址。

  • kill
    -- Terminate the current target process.
    终止当前目标进程。

  • l
    -- List relevant source code using one of several shorthand formats.
    使用几种简写格式之一列出相关的源代码。

  • list
    -- List relevant source code using one of several shorthand formats.
    使用几种简写格式之一列出相关的源代码。

  • n
    -- Source level single step, stepping over calls. Defaults to
    current thread unless specified.
    来源级别单步骤,跨越通话。默认为当前线程,除非指定。

  • next
    -- Source level single step, stepping over calls. Defaults to
    current thread unless specified.
    来源级别单步骤,跨越通话。默认为当前线程,除非指定。

  • nexti
    -- Instruction level single step, stepping over calls. Defaults to
    current thread unless specified.
    指令级单步执行,逐步调用。默认为当前线程,除非指定。

  • ni
    -- Instruction level single step, stepping over calls. Defaults to
    current thread unless specified.
    指令级单步执行,逐步调用。默认为当前线程,除非指定。

  • p
    -- Evaluate an expression on the current thread. Displays any
    returned value with LLDB's default formatting.
    在当前线程上评估一个表达式。显示任何以LLDB的默认格式返回值。

  • parray
    -- Evaluate an expression on the current thread. Displays any
    returned value with LLDB's default formatting.
    在当前线程上评估一个表达式。显示任何以LLDB的默认格式返回值。

  • po
    -- Evaluate an expression on the current thread. Displays any
    returned value with formatting controlled by the type's author.
    在当前线程上评估一个表达式。显示任何返回值的格式由该作者控制。

  • poarray
    -- Evaluate an expression on the current thread. Displays any
    returned value with LLDB's default formatting.
    在当前线程上评估一个表达式。显示任何以LLDB的默认格式返回值。

  • print
    -- Evaluate an expression on the current thread. Displays any
    returned value with LLDB's default formatting.
    在当前线程上评估一个表达式。显示任何以LLDB的默认格式返回值。

  • q
    -- Quit the LLDB debugger.
    退出LLDB调试器。

  • r
    -- Launch the executable in the debugger.
    在调试器中启动可执行文件。

  • rbreak
    -- Sets a breakpoint or set of breakpoints in the executable.
    在可执行文件中设置一个断点或一组断点。

  • repl
    -- Evaluate an expression on the current thread. Displays any
    returned value with LLDB's default formatting.
    在当前线程上评估一个表达式。显示任何以LLDB的默认格式返回值。

  • run
    -- Launch the executable in the debugger.
    在调试器中启动可执行文件。

  • s
    -- Source level single step, stepping into calls. Defaults to
    current thread unless specified.
    来源级单步骤,进入呼叫。默认为当前线程,除非指定。

  • si
    -- Instruction level single step, stepping into calls. Defaults to
    current thread unless specified.
    指令级单步,加入呼叫。默认为当前线程,除非指定。

  • sif
    -- Step through the current block, stopping if you step directly
    into a function whose name matches the TargetFunctionName.
    逐步通过当前块,如果直接步进则停止转换成名称与TargetFunctionName匹配的函数。

  • step
    -- Source level single step, stepping into calls. Defaults to
    current thread unless specified.
    来源级单步骤,进入呼叫。默认为当前线程,除非指定。

  • stepi
    -- Instruction level single step, stepping into calls. Defaults to
    current thread unless specified.
    指令级单步,加入呼叫。默认为当前线程,除非指定。

  • t
    -- Change the currently selected thread.
    更改当前选择的线程。

  • tbreak
    -- Set a one-shot breakpoint using one of several shorthand
    formats.
    使用几种简写中的一种设置一次性断点格式。

  • undisplay
    -- Stop displaying expression at every stop (specified by stop-hook
    index.)
    停止在每个停止处显示表达式(由stop-hook指定)指数。)

  • up
    -- Select an older stack frame. Defaults to moving one frame, a
    numeric argument can specify an arbitrary number.
    选择一个较旧的堆栈帧。 默认移动一帧,a数字参数可以指定任意数字。

  • x
    -- Read from the memory of the current target process.
    从当前目标进程的内存中读取。

For more information on any command, type 'help <command-name>'.
有关任何命令的更多信息,请键入“help <command-name>”。

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 158,560评论 4 361
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 67,104评论 1 291
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 108,297评论 0 243
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 43,869评论 0 204
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 52,275评论 3 287
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,563评论 1 216
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,833评论 2 312
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,543评论 0 197
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,245评论 1 241
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,512评论 2 244
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 32,011评论 1 258
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,359评论 2 253
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 33,006评论 3 235
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,062评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,825评论 0 194
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,590评论 2 273
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,501评论 2 268

推荐阅读更多精彩内容

  • //联系人:石虎QQ: 1224614774昵称:嗡嘛呢叭咪哄 一、概念 英文版:详细链接:点击跳转链接 Debu...
    石虎132阅读 496评论 1 4
  • [转]浅谈LLDB调试器文章来源于:http://www.cocoachina.com/ios/20150126/...
    loveobjc阅读 2,410评论 2 6
  • LLDB的Xcode默认的调试器,它与LLVM编译器一起,带给我们更丰富的流程控制和数据检测的调试功能。平时用Xc...
    CoderSC阅读 1,304评论 0 2
  • 别人说写作分为两种,一种是写给自己的,一种是写给别人的。而写作之于我,也分为两种,一种是用笔和纸来记录的,另一种则...
    谢小葱啊阅读 495评论 3 7
  • 最近使用JTMz作为开发环境,这样就不用单独安装每个软件了。但是把JTMz移动到另外一个位置之后,MySQL服务启...
    _大风起兮云飞扬_阅读 481评论 0 1