I’m coming over to Xcode from visual studio and am having some trouble inspecting or examining variables at my breakpoints.
Often times I’ll try to examine an object by mouse-over and and expand out it’s properties and I’ll only see a hexadecimal representation of the attributes and nothing in the summary in a more human readable form. For example, the Facebook object in the Facebook sdk has an access token property that is an NSCFString. In the debugger how can I see the actual string value rather than the hex value for that attribute?
Are there any very helpful gdb commands that I should use in the debug window?
Also, why does it always say add to iTunes as a spoken track when I mouse over things in the debugger?
As you pointed out, there are some GDB commands to enlighten your life.
Print Object:
Is probably the most used command to help you with debugger inside Xcode. Here’s a roundup on GDB commands inside the Xcode debugger : Debugging tips for Objective-C programming
Personally I kind of rely on the old-fashioned print statements using NSLog. It really is a pain to use the GDB commands all the time.
To me things are faster when I can just print the object and actually see what’s going on every time I run the application:
Here are some tips on using NSLog with parameters: CocoaDev: NSLog
Downpoint: I have to clear out the NSLogs once the app is going to be released.
To your second rather odd iTunes question: Have you enabled accessibility mode on your Mac? (Just a guess, I have never come across something like that)