This is possible with Print multiple variables with one command in GDB, but how to do it with LLDB
?
Asked
Active
Viewed 2,540 times
9

Community
- 1
- 1

user744629
- 1,961
- 1
- 18
- 27
2 Answers
8
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.

Enrico Granata
- 3,303
- 18
- 25
-
Even better with `fr v -o var1 var2 var3 var4` – Kamil.S Apr 21 '19 at 16:02
7
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:
more intuitive, you could use multiple debug command
just like

dengST30
- 3,643
- 24
- 25