I'm debugging a program written in C++, and I would like to have an intuitive representation of objects I deal with.
Is there a specific method that C++ debuggers (gdb in particular) would expect a class to implement for them to use at runtime?
For instance, operator const char* () const
seems to be a viable candidate.
If it depends on the SDK, I have to say I'm using Xcode.
operator+
and similar could be called by sayinga.operator+(b)
(spelling out the operator function), though I may be remembering wrong.