Hi, does any one know of a debugger IDE that gracefully handles STL containers? Perfect example: vector<string>?? Typically one can expect something along the lines of the following being put into a tree view:
Code:
(gdb) print this->levels
$2 = {
_vptr.Vector = 0x56cb70,
v = {
<std::_Vector_base<Vector<Box>,std::allocator<Vector<Box> > >> = {
_M_impl = {
<std::allocator<Vector<Box> >> = {
<__gnu_cxx::new_allocator<Vector<Box> >> = {<No data fields>}, <No data fields>},
members of std::_Vector_base<Vector<Box>,std::allocator<Vector<Box> > >::_Vector_impl:
_M_start = 0x7ed4c0,
_M_finish = 0x7ed500,
_M_end_of_storage = 0x7ed500
}
}, <No data fields>}
}
But you don't actually get easy access to vector elements, apparently just to the iterators. Now knwoing gdb, I am sure there is some convoluted way of actually using the iterators to get at the vector elements, but the point is to have a smart ide to make it happen. It seem like STL is such an intrinsic part of daily grind that more support would be there.