LLDB is an LLVM-based debugger, the counterpart of 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.stepors— 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 12orbr s -f test.c -l 12orb test.c:12.
- At a file, on a specific line:
- Show local variables for current frame
frame variableorfr v- For a specific var, append the variable name.