Advertisement

[MSVC] How do I get STL containers to appear in debugger

Started by January 13, 2001 12:38 AM
0 comments, last by gimp 24 years ago
How do I make whole STL containers appear in the debugger? If only string and vector... Thanks Chris
Chris Brodie
Vector and string can both be made to appear by watching the ._First member. i.e.:
string str; // watch str._First to give you "..."
vector&ltint> vec; // watch vec._First[0] for 0th element, etc.

The map and set containers are unwatchable afaik. If you need to look at them in a loop, assign a temporary reference to the dereferenced iterator--should compile-out in release mode.

This topic is closed to new replies.

Advertisement