I'm using the console to po
some variables, in this case I have a NSMutableArray
, I want to see its count. I get a wonderful error.
Any ideas?
I am aware I can see the count in the variable list (it says @"1 object"), but I seem to have this error for multiple getters and properties while using po
.
UPDATE: Seems like the square bracket notation is the key, and casting to int makes it readable.
use (gdb) p (int)[array count]
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