This is possible with Print multiple variables with one command in GDB, but how to do it with LLDB
?
In lldb you can set breakpoints by typing either break or b followed by information on where you want the program to pause. After the b command, you can put either: a function name (e.g., b my_subroutine ) a line number (e.g., b 12 )
lldb is a next generation, high-performance debugger. It is built as a set of reusable components which highly leverage existing libraries in the larger LLVM Project, such as the Clang expression parser and LLVM disassembler.
You can also expand the regsiters by register class: I'd like to know how to resize the various windows. If you resize the terminal, the size of the stack view pane seems to remain fixed, so the symbol names always end up truncated.
Loading a Program into lldb First we need to set the program to debug. As with gdb, you can start lldb and specify the file you wish to debug on the command line: $ lldb /Projects/Sketch/build/Debug/Sketch. app Current executable set to '/Projects/Sketch/build/Debug/Sketch.
If all you want is to print variables, then
(lldb) frame variable var1 var2 var3 var4
will do it for you
But if you're trying to actually evaluate expressions instead of just printing local variables, then that will not work.
To get the same result , you can log messages with Xcode Breakpoints.
writing:
@var1@ @var2@ @var3@ @var4@
more details:
var1 is @var1@ , var2 is @var2@, var3 is @var3@ , var4 is @var4@
showing a pic:
just like
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With