| 命令命令命令命令命令 | 作用 | 原文 |
|---|---|---|
| apropos | 列出與單詞或主題相關(guān)的調(diào)試器命令。 | List debugger commands related to a word or subject. |
| breakpoint | 操作斷點(diǎn)的命令(請(qǐng)參閱“help b”以方便速記)。 | Commands for operating on breakpoints (see 'help b' for shorthand.) |
| command | 自定義LLDB命令管理命令。 | Commands for managing custom LLDB commands. |
| disassemble | 反匯編當(dāng)前目標(biāo)中的指定指令。默認(rèn)為當(dāng)前線程和堆棧幀的當(dāng)前函數(shù)。 | Disassemble specified instructions in the current target. Defaults to the current function for the current thread and stack frame. |
| expression | 計(jì)算當(dāng)前線程上的表達(dá)式。使用LLDB的默認(rèn)格式顯示任何返回值。 | Evaluate an expression on the current thread. Displays any returned value with LLDB's default formatting. |
| frame | 用于選擇和檢查當(dāng)前線程的堆棧幀的命令。 | Commands for selecting and examing the current thread's stack frames. |
| gdb-remote | 通過(guò)遠(yuǎn)程GDB服務(wù)器連接到一個(gè)進(jìn)程。如果沒有指定主機(jī),則假定為localhost。 | Connect to a process via remote GDB server. If no host is specifed, localhost is assumed. |
| gui | 切換到基于GUI的詛咒模式。 | Switch into the curses based GUI mode. |
| help | 顯示所有調(diào)試器命令的列表,或給出有關(guān)特定命令的詳細(xì)信息。 | Show a list of all debugger commands, or give details about a specific command. |
| kdp-remote | 通過(guò)遠(yuǎn)程KDP服務(wù)器連接到一個(gè)進(jìn)程。如果沒有指定UDP端口,則假定端口為41139。 | Connect to a process via remote KDP server. If no UDP port is specified, port 41139 is assumed. |
| language | 特定于源語(yǔ)言的命令。 | Commands specific to a source language. |
| log | 控制LLDB內(nèi)部日志記錄的命令。 | Commands controlling LLDB internal logging. |
| memory | 用于操作當(dāng)前目標(biāo)進(jìn)程中的內(nèi)存的命令。 | Commands for operating on memory in the current target process. |
| platform | 管理和創(chuàng)建平臺(tái)的命令。 | Commands to manage and create platforms. |
| plugin | LLDB插件管理命令。 | Commands for managing LLDB plugins. |
| process | 用于與當(dāng)前平臺(tái)上的進(jìn)程交互的命令。 | Commands for interacting with processes on the current platform. |
| quit | 退出LLDB調(diào)試器。 | Quit the LLDB debugger. |
| register | 用于訪問(wèn)當(dāng)前線程和堆棧幀的寄存器的命令。 | Commands to access registers for the current thread and stack frame. |
| reproducer |
用于操作復(fù)制程序的命令。 重新生成程序可以捕獲帶有所有依賴項(xiàng)的完整調(diào)試會(huì)話。 生成的復(fù)制器用于在調(diào)試調(diào)試器時(shí)重播調(diào)試會(huì)話。 因?yàn)閺?fù)制器需要從頭到尾的整個(gè)調(diào)試會(huì)話,所以您需要以捕獲或重播模式啟動(dòng)調(diào)試器,通常通過(guò)命令行驅(qū)動(dòng)程序。 復(fù)制器是不相關(guān)的記錄重播調(diào)試,因?yàn)樵谥夭テ陂g您不能與調(diào)試器交互。 |
Commands for manipulating reproducers. Reproducers make it possible to capture full debug sessions with all its dependencies. The resulting reproducer is used to replay the debug session while debugging the debugger. Because reproducers need the whole the debug session from beginning to end, you need to launch the debugger in capture or replay mode, commonly though the command line driver. Reproducers are unrelated record-replay debugging, as you cannot interact with the debugger during replay. |
| script | 使用提供的代碼調(diào)用腳本解釋器并顯示任何結(jié)果。如果沒有提供代碼,則啟動(dòng)交互式解釋器。 | Invoke the script interpreter with provided code and display any results. Start the interactive interpreter if no code is supplied. |
| settings | LLDB設(shè)置管理命令。 | Commands for managing LLDB settings. |
| source | 用于檢查由當(dāng)前目標(biāo)進(jìn)程的調(diào)試信息描述的源代碼的命令。 | Commands for examining source code described by debug information for the current target process. |
| statistics | 打印調(diào)試會(huì)話的統(tǒng)計(jì)信息 | Print statistics about a debugging session |
| target | 用于操作調(diào)試器目標(biāo)的命令。 | Commands for operating on debugger targets. |
| thread | 用于操作當(dāng)前進(jìn)程中的一個(gè)或多個(gè)線程的命令。 | Commands for operating on one or more threads in the current process. |
| type | 用于在類型系統(tǒng)上操作的命令。 | Commands for operating on the type system. |
| version | 顯示LLDB調(diào)試器版本。 | Show the LLDB debugger version. |
| watchpoint | 在觀察點(diǎn)上操作的命令。當(dāng)前命令的縮寫(輸入“幫助命令別名”獲取更多信息): | Commands for operating on watchpoints. Current command abbreviations (type 'help command alias' for more info): |
| add-dsym | 通過(guò)指定調(diào)試符號(hào)文件的路徑,或使用選項(xiàng)指定要為其下載符號(hào)的模塊,將調(diào)試符號(hào)文件添加到目標(biāo)的當(dāng)前模塊之一。 | 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 | 通過(guò)ID或名稱附加到進(jìn)程。 | Attach to process by ID or name. |
| b | 使用幾種簡(jiǎn)寫格式中的一種設(shè)置斷點(diǎn)。 | Set a breakpoint using one of several shorthand formats. |
| bt | 顯示當(dāng)前線程的調(diào)用堆棧。任何數(shù)字參數(shù)最多顯示那么多幀。參數(shù)'all'顯示所有線程。 | Show the current thread's call stack. Any numeric argument displays at most that many frames. The argument 'all' displays all threads. |
| c | 繼續(xù)執(zhí)行當(dāng)前進(jìn)程中的所有線程。 | Continue execution of all threads in the current process. |
| call | 計(jì)算當(dāng)前線程上的表達(dá)式。使用LLDB的默認(rèn)格式顯示任何返回值。 | Evaluate an expression on the current thread. Displays any returned value with LLDB's default formatting. |
| continue | 繼續(xù)執(zhí)行當(dāng)前進(jìn)程中的所有線程。 | Continue execution of all threads in the current process. |
| detach | 從當(dāng)前目標(biāo)進(jìn)程分離。 | Detach from the current target process. |
| di | 反匯編當(dāng)前目標(biāo)中的指定指令。默認(rèn)為當(dāng)前線程和堆棧幀的當(dāng)前函數(shù)。 | Disassemble specified instructions in the current target. Defaults to the current function for the current thread and stack frame. |
| dis | 反匯編當(dāng)前目標(biāo)中的指定指令。默認(rèn)為當(dāng)前線程和堆棧幀的當(dāng)前函數(shù)。 | Disassemble specified instructions in the current target. Defaults to the current function for the current thread and stack frame. |
| display | 在每個(gè)stop處計(jì)算一個(gè)表達(dá)式(參見“help target stop-hook”)。 | Evaluate an expression at every stop (see 'help target stop-hook'.) |
| down | 選擇一個(gè)更新的堆棧幀。默認(rèn)情況下移動(dòng)一幀,數(shù)值參數(shù)可以指定任意數(shù)字。 | Select a newer stack frame. Defaults to moving one frame, a numeric argument can specify an arbitrary number. |
| env | 查看和設(shè)置環(huán)境變量的簡(jiǎn)寫。 | Shorthand for viewing and setting environment variables. |
| exit | 退出LLDB調(diào)試器。 | Quit the LLDB debugger. |
| f | 從當(dāng)前線程中按索引選擇當(dāng)前堆棧幀(參見thread backtrace)。 | Select the current stack frame by index from within the current thread (see 'thread backtrace'.) |
| file | 使用該參數(shù)作為主可執(zhí)行文件創(chuàng)建一個(gè)目標(biāo)。 | Create a target using the argument as the main executable. |
| finish | 完成當(dāng)前堆棧幀的執(zhí)行,返回后停止。默認(rèn)為當(dāng)前線程,除非指定。 | Finish executing the current stack frame and stop after returning. Defaults to current thread unless specified. |
| image | 用于訪問(wèn)一個(gè)或多個(gè)目標(biāo)模塊信息的命令。 | Commands for accessing information for one or more target modules. |
| j | 將程序計(jì)數(shù)器設(shè)置為新地址。 | Set the program counter to a new address. |
| jump | 將程序計(jì)數(shù)器設(shè)置為新地址。 | Set the program counter to a new address. |
| kill | 終止當(dāng)前目標(biāo)進(jìn)程。 | Terminate the current target process. |
| l | 使用幾種簡(jiǎn)寫格式之一列出相關(guān)的源代碼。 | List relevant source code using one of several shorthand formats. |
| list | 使用幾種簡(jiǎn)寫格式之一列出相關(guān)的源代碼。 | List relevant source code using one of several shorthand formats. |
| n | 源級(jí)單步,跨步調(diào)用。默認(rèn)為當(dāng)前線程,除非指定。 | Source level single step, stepping over calls. Defaults to current thread unless specified. |
| next | 源級(jí)單步,跨步調(diào)用。默認(rèn)為當(dāng)前線程,除非指定。 | Source level single step, stepping over calls. Defaults to current thread unless specified. |
| nexti | 指令級(jí)單步、跨步調(diào)用。默認(rèn)為當(dāng)前線程,除非指定。 | Instruction level single step, stepping over calls. Defaults to current thread unless specified. |
| ni | 指令級(jí)單步、跨步調(diào)用。默認(rèn)為當(dāng)前線程,除非指定。 | Instruction level single step, stepping over calls. Defaults to current thread unless specified. |
| p | 計(jì)算當(dāng)前線程上的表達(dá)式。使用LLDB的默認(rèn)格式顯示任何返回值。 | Evaluate an expression on the current thread. Displays any returned value with LLDB's default formatting. |
| parray | lldb將計(jì)算EXPRESSION以在內(nèi)存中獲得一個(gè)類型指向數(shù)組的指針,并顯示數(shù)組中該類型的COUNT元素。 | parray <COUNT> <EXPRESSION> -- lldb will evaluate EXPRESSION to get a typed-pointer-to-an-array in memory, and will display COUNT elements of that type from the array. |
| po | 計(jì)算當(dāng)前線程上的表達(dá)式。顯示格式由類型的作者控制的任何返回值。 | Evaluate an expression on the current thread. Displays any returned value with formatting controlled by the type's author. |
| poarray | lldb將對(duì)EXPRESSION求值以獲得內(nèi)存中COUNT對(duì)象數(shù)組的地址,并對(duì)它們調(diào)用po。 | poarray <COUNT> <EXPRESSION> -- lldb will evaluate EXPRESSION to get the address of an array of COUNT objects in memory, and will call po on them. |
| 計(jì)算當(dāng)前線程上的表達(dá)式。使用LLDB的默認(rèn)格式顯示任何返回值。 | Evaluate an expression on the current thread. Displays any returned value with LLDB's default formatting. | |
| q | 退出LLDB調(diào)試器。 | Quit the LLDB debugger. |
| r | 在調(diào)試器中啟動(dòng)可執(zhí)行文件。 | Launch the executable in the debugger. |
| rbreak | 在可執(zhí)行文件中設(shè)置一個(gè)或一組斷點(diǎn)。 | Sets a breakpoint or set of breakpoints in the executable. |
| re | 用于訪問(wèn)當(dāng)前線程和堆棧幀的寄存器的命令。 | Commands to access registers for the current thread and stack frame. |
| repl | 計(jì)算當(dāng)前線程上的表達(dá)式。使用LLDB的默認(rèn)格式顯示任何返回值。 | Evaluate an expression on the current thread. Displays any returned value with LLDB's default formatting. |
| run | 在調(diào)試器中啟動(dòng)可執(zhí)行文件。 | Launch the executable in the debugger. |
| s | 源級(jí)單步,進(jìn)入調(diào)用。默認(rèn)為當(dāng)前線程,除非指定。 | Source level single step, stepping into calls. Defaults to current thread unless specified. |
| shell | 在主機(jī)上執(zhí)行shell命令。 | Run a shell command on the host. |
| si | 指令級(jí)單步,進(jìn)入呼叫。默認(rèn)為當(dāng)前線程,除非指定。 | Instruction level single step, stepping into calls. Defaults to current thread unless specified. |
| sif | 步驟遍歷當(dāng)前塊,如果直接進(jìn)入名稱與TargetFunctionName匹配的函數(shù),則停止。 | Step through the current block, stopping if you step directly into a function whose name matches the TargetFunctionName. |
| step | 源級(jí)單步,進(jìn)入調(diào)用。默認(rèn)為當(dāng)前線程,除非指定。 | Source level single step, stepping into calls. Defaults to current thread unless specified. |
| stepi | 指令級(jí)單步,進(jìn)入呼叫。默認(rèn)為當(dāng)前線程,除非指定。 | Instruction level single step, stepping into calls. Defaults to current thread unless specified. |
| t | 更改當(dāng)前選擇的線程。 | Change the currently selected thread. |
| tbreak | 使用幾種簡(jiǎn)寫格式中的一種設(shè)置一次性斷點(diǎn)。 | Set a one-shot breakpoint using one of several shorthand formats. |
| undisplay | 在每個(gè)Stop(由Stop -hook index指定)處停止顯示表達(dá)式。 | Stop displaying expression at every stop (specified by stop-hook index.) |
| up | 選擇舊的堆棧幀。默認(rèn)情況下移動(dòng)一幀,數(shù)值參數(shù)可以指定任意數(shù)字。 | Select an older stack frame. Defaults to moving one frame, a numeric argument can specify an arbitrary number. |
| v |
顯示當(dāng)前堆棧幀的變量。默認(rèn)為作用域內(nèi)的所有參數(shù)和局部變量。可以指定參數(shù)、局部變量、文件靜態(tài)變量和文件全局變量的名稱。 可以指定聚合變量的子變量,如'var->child.x'。'frame variable'中的->和[]操作符如果存在,則不會(huì)調(diào)用操作符重載,而是直接訪問(wèn)指定的元素。 如果要觸發(fā)操作符重載,請(qǐng)使用expression命令來(lái)打印變量。 值得注意的是,除了重載操作符外,打印局部變量'expr local_var'和'frame var local_var'會(huì)產(chǎn)生相同的結(jié)果。 然而,“幀變量”更有效率,因?yàn)樗褂谜{(diào)試信息和內(nèi)存直接讀取,而不是解析和計(jì)算一個(gè)表達(dá)式,這甚至可能涉及JITing和在目標(biāo)程序中運(yùn)行代碼。 |
Show variables for the current stack frame. Defaults to all arguments and local variables in scope. Names of argument, local, file static and file global variables can be specified. Children of aggregate variables can be specified such as 'var->child.x'. The -> and [] operators in 'frame variable' do not invoke operator overloads if they exist, but directly access the specified element. If you want to trigger operator overloads use the expression command to print the variable instead. It is worth noting that except for overloaded operators, when printing local variables 'expr local_var' and 'frame var local_var' produce the same results. However, 'frame variable' is more efficient, since it uses debug information and memory reads directly, rather than parsing and evaluating an expression, which may even involve JITing and running code in the target program. |
| var |
顯示當(dāng)前堆棧幀的變量。默認(rèn)為作用域內(nèi)的所有參數(shù)和局部變量??梢灾付▍?shù)、局部變量、文件靜態(tài)變量和文件全局變量的名稱。 可以指定聚合變量的子變量,如'var->child.x'。'frame variable'中的->和[]操作符如果存在,則不會(huì)調(diào)用操作符重載,而是直接訪問(wèn)指定的元素。 如果要觸發(fā)操作符重載,請(qǐng)使用expression命令來(lái)打印變量。 值得注意的是,除了重載操作符外,打印局部變量'expr local_var'和'frame var local_var'會(huì)產(chǎn)生相同的結(jié)果。 然而,“幀變量”更有效率,因?yàn)樗褂谜{(diào)試信息和內(nèi)存直接讀取,而不是解析和計(jì)算一個(gè)表達(dá)式,這甚至可能涉及JITing和在目標(biāo)程序中運(yùn)行代碼。 |
Show variables for the current stack frame. Defaults to all arguments and local variables in scope. Names of argument, local, file static and file global variables can be specified. Children of aggregate variables can be specified such as 'var->child.x'. The -> and [] operators in 'frame variable' do not invoke operator overloads if they exist, but directly access the specified element. If you want to trigger operator overloads use the expression command to print the variable instead. It is worth noting that except for overloaded operators, when printing local variables 'expr local_var' and 'frame var local_var' produce the same results. However, 'frame variable' is more efficient, since it uses debug information and memory reads directly, rather than parsing and evaluating an expression, which may even involve JITing and running code in the target program. |
| vo | 顯示當(dāng)前堆棧幀的變量。默認(rèn)為作用域內(nèi)的所有參數(shù)和局部變量。可以指定參數(shù)、局部變量、文件靜態(tài)變量和文件全局變量的名稱。 可以指定聚合變量的子變量,如'var->child.x'。'frame variable'中的->和[]操作符如果存在,則不會(huì)調(diào)用操作符重載,而是直接訪問(wèn)指定的元素。 如果要觸發(fā)操作符重載,請(qǐng)使用expression命令來(lái)打印變量。 值得注意的是,除了重載操作符外,打印局部變量'expr local_var'和'frame var local_var'會(huì)產(chǎn)生相同的結(jié)果。 然而,“幀變量”更有效率,因?yàn)樗褂谜{(diào)試信息和內(nèi)存直接讀取,而不是解析和計(jì)算一個(gè)表達(dá)式,這甚至可能涉及JITing和在目標(biāo)程序中運(yùn)行代碼。 |
Show variables for the current stack frame. Defaults to all arguments and local variables in scope. Names of argument, local, file static and file global variables can be specified. Children of aggregate variables can be specified such as 'var->child.x'. The -> and [] operators in 'frame variable' do not invoke operator overloads if they exist, but directly access the specified element. If you want to trigger operator overloads use the expression command to print the variable instead. It is worth noting that except for overloaded operators, when printing local variables 'expr local_var' and 'frame var local_var' produce the same results. However, 'frame variable' is more efficient, since it uses debug information and memory reads directly, rather than parsing and evaluating an expression, which may even involve JITing and running code in the target program. |
| x | 從當(dāng)前目標(biāo)進(jìn)程的內(nèi)存中讀取。 | Read from the memory of the current target process. |
LLDB命令
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。
相關(guān)閱讀更多精彩內(nèi)容
- LLDB闡述 LLDB 是一個(gè)有著 REPL 的特性和 C++ ,Python 插件的開源調(diào)試器。LLDB 綁定在...
- 1.常用的命令 p-------返回值的類型以及命令結(jié)果的引用名po -----輸出對(duì)應(yīng)的值call ----ca...
- XCode版本:9.2 (9C40b) apropos-- List debugger commands rela...
- 第二章延遲了幾天才寫,原因是我自己也正在學(xué)習(xí)使用LLDB,不過(guò)在學(xué)習(xí)中遇到了一些困惑:在 Objective-C+...