LLDB is an LLVM-based debugger, the counterpart for Clang for C/C++/Objective-C.
Quick links:
Commands
This assumes the process is loaded already.
n
— makes a one line step from a breakpoint. Does not step into a function.step
ors
— make a one line step from a breakpoint. Steps into a function.- Set a breakpoint
- At a file, on a specific line:
breakpoint set --file test.c --line 12
orbr s -f test.c -l 12
orb test.c:12
.
- At a file, on a specific line:
- Show local variables for current frame
frame variable
orfr v
- For a specific var, append the variable name.