Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcode 4 debugging shows 'Summary Unavailable' for most objects

Tags:

xcode

iphone

Whilst using Xcode 4.0 and trying to debug and see what value is held in what variable - or see what objects are in an array etc, I always seem to get "Summary Unavailable" or "Invalid Summary".

The problem seems much like the one in 3.2.6 if you built and ran a release version with the symbols stripped.

Any chance that any one knows where I am going wrong, or what the resolution is For years things worked smoothly - then Apple stepped in - again.

Thanks

like image 557
theiOSDude Avatar asked Mar 14 '11 16:03

theiOSDude


3 Answers

You're not going wrong, Xcode 4 is. This problem is pretty common, unfortunately. Report it at http://bugreport.apple.com/ and hope for the best.

In the meantime you can inspect variables using the console, which appears at the bottom of Xcode 4's window during debugging. If you have an object "myObj", you can inspect it in the console by typing "po myObj". It's a lot less convenient but it's better than not getting the information at all.

like image 87
Tom Harrington Avatar answered Oct 21 '22 12:10

Tom Harrington


You can also try changing the "Summary Format" in the GDB window. Try something like {(NSString *)[$VAR description]}:s as the Summary format - this works for NSManagedObject derived objects.

like image 37
ferdil Avatar answered Oct 21 '22 13:10

ferdil


While waiting for Apple to fix Xcode 4 you can try using "Print Description", which prints the value to console.

like image 2
Atte Kotiranta Avatar answered Oct 21 '22 13:10

Atte Kotiranta