I've seen passing statements that you can enter complex statements like a for loop in an LLDB command (in the language of the program you're debugging - in this case Objective-C)
I would really like to be able to do this. I've never learned Python, and would prefer not to invest the time to do so in order to use the available python LLDB support - there just aren't enough hours in the day for that.
You can enter Objective-C statements using expr -- ...
, for example:
(lldb) po myArray ( foo, bar ) (lldb) expr -- for (NSString *s in myArray) { (void)NSLog(@"%@", s) ; } 2013-12-03 18:29:03.637 myapp[1373:70b] foo 2013-12-03 18:29:03.639 myapp[1373:70b] bar
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