Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display strings in Xcode debugger?

I always used to be able to see NSString values in the debugger, without problem. Since updating to 3.2.5 all I see is the format string {(char *)Xcode_CFStringSummary($VAR, $ID)}:s

I can't see anything wrong with that. Can anybody please tell me what the correct formatter should be?

like image 767
Rich Avatar asked Dec 01 '10 10:12

Rich


People also ask

How do I display a variable in Xcode?

See variable values in code and the variable viewer When your app pauses at a breakpoint, hover over a variable in your source code to view its current value. If the variable is an image or other type that isn't expressible as text, click the Quick Look button at the upper-right to see a preview of the variable.

How do I run debugger in Xcode?

When you run an application in Xcode, the debugger is automatically started and attached to the process of the application. Click the Run button in the top left or press Command + R. From the moment the application is up and running, we can start inspecting the process and, if necessary, debug it.

How do I trace in Xcode?

Use the bt command in (lldb). Once paused or after a crash, just type bt into the debug console. It will print the full stack trace. Awesome tip for tracking down a constraint issue after setting the symbolic breakpoint.


1 Answers

I'm having this same problem and haven't found a solution. But at least I did figure out you can still view the strings by right clicking on the string variable and selecting "Print Description to Console".

like image 156
Steve Avatar answered Sep 28 '22 02:09

Steve