Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do the icons in Xcode 4's debug area variable list mean?

Tags:

xcode

xcode4.2

Is anyone able to provide a definitive guide to the labelled icons in Xcode 4's debug area variable list? Here's a list of what I have at the moment. I can't figure out what they mean:

Curious Xcode 4 debugger icons

It's not intuitive. For example, I have BOOL and NSMutableString objects, both with green 'i' icons. I haven't been able to find a list of what these icons mean, either in Xcode's documentation, or online. Thank-you,

Steve.

like image 888
Steve HHH Avatar asked Mar 29 '12 00:03

Steve HHH


People also ask

How do I see variables 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 breakpoints work in Xcode?

Navigate to a line in your code where you want execution to pause, then click the gutter or line number in the source editor to set a breakpoint. Xcode displays a breakpoint icon to indicate the location. Drag a breakpoint up or down to move it to another location; drag it away from the gutter to remove it.

How do I add variables to watch Xcode?

Right click in the local variables window to see the "Watch Expression" menu command. Type the variable name and the variable will be added.

Where is the debug area in Xcode?

The first change you'll notice when the application is running and Xcode's debugger is attached to the application's process, is the Debug Area at the bottom. What you see depends on the configuration of your Xcode installation, but you should see, at the very least, the debug bar appear at the bottom of the window.


1 Answers

They appear to be:

L = Local variable A = Argument S = Static variable V = global Variable R = register V = instance Variable E = Expression 

Here are some links which discuss that part of the interface:

  • debugging with Xcode
  • debug area overview

edit: updated with Steve HHH's suggestion
edit2: updated following information from a WWDC 2012 presentation, "Debugging in Xcode" (video no longer available)

like image 90
ThomasW Avatar answered Sep 18 '22 13:09

ThomasW