lldb - evanmoran/quick GitHub Wiki

Navigation:

r                         Run process                  (alias: run)
c                         Continue                     (alias: continue)
s                         Step into                    (alias: step)
n                         Step over                    (alias: next)
fin                       Step out                     (alias: finish)
register write pc `$pc+8` Jump current program counter 8 bytes forward
(return)                  Pressing return repeats last command

Breakpoints:

b main                    Set breakpoint on functions named 'main'
br l                      List all breakpoints         (alias: breakpoint list)
br del 1                  Delete breakpoint 1          (alias: breakpoint delete 1)
br del                    Delete all breakpoints       (alias: breakpoint delete)

br s -S count                     Breakpoint on objective c selectors named `count`
br -[NSString stringWithFormat]   Breakpoint on objective c function

Printing:

p name                    Print 'name' variable
po name                   Print 'name' object          (XCode only)
register read             Print registers for current thread

Stack:

bt                   Show call stack                   (alias: backtrace)
bt all               Show call stacks for all threads  (alias: backtrace all)
f variable           Show all variables in scope
f 2                  Go to stack position 2 defined    (alias: frame 2)
f 0                  Go to original stack position     (alias: frame 0)