Debugging in Xcode - kgleong/software-engineering GitHub Wiki
Debugging in Xcode
LLDB Commands
| command | aliases | description |
|---|---|---|
print |
p |
prints out a variable |
po |
prints an object | |
expression |
e, expr |
Executes a command. E.g, e myVar = 5 will assign a new value to myVar. |
continue |
c |
Continue program execution until next breakpoint |
next |
n, step-over |
Go to the next instruction |
step |
in, s, step-in |
Steps into a function call if present. |
step-out |
Step out of a function call. | |
frame info |
Shows the current file and line number. | |
thread return |
Loads the specified value into the return registers and returns from the current function immediately. Good for stubbing out functions. E.g., thread return 9. |
References
-
Apple Developer