When I use p
or print
it will only print the first 256 elements.
How can I print all of them?
You can tell lldb to force all the array elements to be printed for a particular expression evaluation thusly:
(lldb) expr -A -- array_variable
You can also raise the maximum number of elements (lldb calls them "children") that get printed by default by running:
(lldb) set set target.max-children-count 1024
or whatever value you want. You can also put this in your ~/.lldbinit
if you want to up this limit for all your lldb sessions.
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