I am using Xcode 4.5 on a Mac with an iOS simulator to write iPhone apps. When I hit a breakpoint in the debugger, I use "Auto" to view the variables. The problem is that the objects are initially stacked, and I have to expand each one to see its meaning. This is normal, but it is tiring and difficult to read. Is there a CUSTOMIZING way to present data in a debugger?
I looked at the LLDB tutorial and I looked at the "custom summary lines" in the Quinn Taylor post , but I don't get it. He must have used an older version of xcode.
Basically, I have an object like
class Vec3 {public: float x, y, z; };
and in the debug window I see
pos (Vec3)
and what I would rather see
pos = (Vec3) (x=45.2, y=10.7, z=2.0)
without the need to expand the variable. Does anyone know how I can do this?
source share