Is there a trick to see NSString values in an NSMutableArray in Xcode debugger?

debugging, iphone, nsarray, nsstring, xcode

Solution

You should be able to see at least an abbreviated string in the variables pane when you expand a NSMutableArray. If you can't, that suggest you don't actually have strings as elements.

In the variables pane, control-click and from the pop-up menu select `Show Type Column`. Then when you drilled down into the array, it will show you the class of each element.

Problem

When I debug, I never get the value of an NSString inside of an array. All I see are cryptic symbols, probably memory addresses of something like 0x1dc3753. I dig into all the stuff and expand everything, but no humanly readable value at all. Not really useful at all. How do you go about this (besides NSLogging everything)?

Original source