How to view text in NSString while debugging

I am new to Xcode 4 and I cannot figure out how to view the value of a variable, such as NSCFString, at a breakpoint. I see my Auto / Local, but they show Hex values โ€‹โ€‹using Summary Unavailable. All I want to do is see the line as plain text. I even hang over variables waiting to see their values, as in Visual Studio, with no luck.

+7
source share
1 answer

Turn on the console view for the debugger and enter the prompt type:

(lldb) po myStringVariable 

or

 (lldb) po [self someStringProperty] 
+14
source

All Articles