[MSVC] How do I get STL containers to appear in debugger
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<int> 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.
string str; // watch str._First to give you "..."
vector<int> 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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement