Summary format problems in debugger
Summary format problems in debugger
- Subject: Summary format problems in debugger
- From: Fred Leboucher <email@hidden>
- Date: Wed, 16 Apr 2008 11:57:15 +0200
Hi,
I'm trying to define summary format for some of my common C++ types in
the Xcode debugger, and I'm getting into some problems...
I first defined a format for my own string class, allowing to see the
string directly instead of opening 3 or 4 hierarchies and then having
to go to a memory location (which was due to a typedef to replace
'char'). This works well, but only if the string in question is a
parameter of the function I'm in, or a local parameter. If the string
happens to be a member of some other object, the summary just says
"out of scope". I'm guessing this is the same problems that sometimes
occur when you right click a variable in a class and ask to display it
as an expression. The expression will look something like :
((((MyNamespace::TypeA *) myObject))->myMember)
which always replies with the same "out of scope" message.
The same expression, removing all the types :
myObject->myMember
works perfectly well in the Expressions view, but there is no way I
can use that in the debugger's variables view, so I can't find any way
past this problem when creating my summary formats. The problems keeps
getting worse when my objects have multiple levels of inheritance.
Thus, my summary format for my string objects are not displayed when
it is nested in another object, and I also can't reference it in this
object's summary format. Would anyone know how to get past this ?
Regards,
Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden