Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't NSString always display its text in Xcode debugger?

Tags:

xcode

nsstring

It seems completely arbitrary, sometimes NSString will appear fine in the debugger:

 myStr  NSString *  0x0000000104e00040 @"Hello"

other times just:

myStr   NSString *  0x0000000104e00040

There's no problem with the NSStrings, just how they appear in the debugger. Are there any factors that influence this?

like image 606
Joey FourSheds Avatar asked Sep 05 '26 01:09

Joey FourSheds


1 Answers

it is a bug in the IDE I think, I don't think there's anything we can do about it.

maybe the stack depth influences that... but thats guesswork.

a po MyStr in the console always works fine :)

like image 81
Daij-Djan Avatar answered Sep 08 '26 11:09

Daij-Djan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!