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:
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.
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.
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.
Right click in the local variables window to see the "Watch Expression" menu command. Type the variable name and the variable will be added.
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.
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:
edit: updated with Steve HHH's suggestion
edit2: updated following information from a WWDC 2012 presentation, "Debugging in Xcode" (video no longer available)
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