Debugger and STL
Debugger and STL
- Subject: Debugger and STL
- From: Jerry <email@hidden>
- Date: Thu, 10 Mar 2005 14:24:22 +0000
Hi,
Does anyone have any useful hints for looking at STL variables in the
XCode Debugger? We use STL extensively and I find myself severely
hampered in debugging by not being able to easily view STL types. I
know it's possible to write functions to print out my own types and
call them from the debugger console, but this isn't very convenient and
isn't very useful for templated types.
I can see std::string by adding a custom formatter %_M_dataplus._M_p%:s
but the debugger keeps forgetting this and I constantly have to
re-enter it.
std:vector is difficult. It's only possible to see the first item in
the vector unless you start messing around by typing pointer-arithmetic
expressions in the expressions window. This is really tedious,
especially as you can't edit previously-entered expressions. While
we're on that, is there any way to view memory as an array (like
CodeWarrior does)? If there was, that would solve the std:vector
problem. I'd also like a custom formatter which will show the number of
items in the vector, but haven't managed to get one working.
And another thing, while I'm typing...what's the best way to view a
variable that's a four char code? There's no "view as Char" command and
even if you go through the dialog and view as char, you only get the
first char. Since any Mac program would disintegrate immediately
without four char codes, it seems strange that XCode doesn't let you
view or enter them.
I'm sure there's easy answers to these things and people will
immediately point me to the totally obvious page in the documentation
which I've unaccountably been unable to find.
Jerry
_______________________________________________
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