-
2 of the most common commands you will use when debugging with lldb
p(print)x(examine)
-
p(everything high-level)- locals:
p a - expressions:
p a + b - registers:
register read eax->p $eax
- locals:
-
formatting
- hex:
p/x a + b - decimal:
p/d a
- hex:
-
x(examine raw memory)- instructions:
x/i $rip - relative addressing:
x $rbp-0x10 - with format:
x/wd $rbp-0x10 - multiple values:
x/3wd $rbp-0x10
- instructions:
-
What’s the 80/20 rule for debugging C++ in LLDB?
-
The Only 2 Commands You Need To Debug C++: Print (p) vs Examine (x)
-
Debug C++ 80% Faster with These 2 LLDB Commands
-
The Only 2 LLDB Commands You Need To Debug C++: Print vs Examine
-
The Only 2 LLDB Commands You Need To Debug C++: Print (p) vs Examine (x)
- ChatGPT and Gemini