Difference between revisions of "LLDB Commands"
From Coder Merlin
Line 5: | Line 5: | ||
|- | |- | ||
| {{Command|process}} {{Command|launch}} {{Command|--stop-at-entry}} | | {{Command|process}} {{Command|launch}} {{Command|--stop-at-entry}} | ||
| Launch the | | Launch the executable in the debugger and then immediately halt | ||
|- | |- | ||
| {{Command|process}} {{Command|launch}} {{Command|--}} {{CommandPlaceholder|arguments}} | | {{Command|process}} {{Command|launch}} {{Command|--}} {{CommandPlaceholder|arguments}} | ||
| Launch the | | Launch the executable in the debugger with the specified arguments | ||
|- | |- | ||
| {{Command|step}} | | {{Command|thread}} {{Command|step-in}} <br/> | ||
| Source-level single | Alternative: {{Command|step}} <br/> | ||
Alternative: {{Command|s}} | |||
| Source level single step, stepping into calls. | |||
|- | |||
| {{Command|thread}} {{Command|step-over}} <br/> | |||
Alternative: {{Command|next}} <br/> | |||
Alternative: {{Command|n}} | |||
| Source level single step, stepping over calls. | |||
|} | |} | ||
Revision as of 13:07, 23 September 2020
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder
Execution[edit]
Key Sequence | Purpose |
---|---|
process launch --stop-at-entry | Launch the executable in the debugger and then immediately halt |
process launch -- arguments | Launch the executable in the debugger with the specified arguments |
thread step-in Alternative: step |
Source level single step, stepping into calls. |
thread step-over Alternative: next |
Source level single step, stepping over calls. |
Breakpoint[edit]
Key Sequence | Purpose |
---|---|
breakpoint set --name function_name | Set a breakpoint on the function named function_name |
breakpoint set --file file_name --line line_number | Set a breakpoint in the file named file_name at line number line_number |
Disassemble Frame[edit]
disassemble --frame –mixed
Memory Read[edit]
memory read --size 4 --format x --count 4 0x00007fffffffdb64
Register Read[edit]
register read
Single-Step Assembly[edit]
stepi