I understand that when you reach a breakpoint while debugging in Xcode you can hover the mouse pointer over objects and see their properties. But with most objects you only get a few of the properties. The rest are hidden. Trying this with a CLLocation object is next to useless.
Is there another way to peer inside this object while debugging?
Do I just have to resort to using NSLog to get what I want?
As box pointed out, the gdb
pocommand will print out whatever a varname points to. Xcode’s debugger panel (the bottom pane in Xcode4) will also list out all objects in the current scope and allow you to view their ivars by clicking the disclosure buttons next to the objects. For Apple classes, though, this doesn’t work so great, so I’d rely more onpo, NSLog, and Apple’s docs.