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 or s — 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 or br s -f test.c -l 12 or b test.c:12.
  • Show local variables for current frame
    • frame variable or fr v
      • For a specific var, append the variable name.

See also