Is there any easy way to view the data in an STL std::list<T>
in the Metrowerks CodeWarrior debugger? I can view data near the beginning or end of the list by looking at expressions such as
instances->__list_imp.__list_deleter.end_.compressed_pair_imp.second_.prev_->data_
I can expand the little '+' signs next to the struct members to walk the list an element at a time, but this is tedious, and after about 20-30 elements, the tree gets too wide for the debugger window. The list I'm examining has over 2000 elements.
The CodeWarrior debugger does not support calling functions in expressions, so I can't examine the value of (++(++instances.begin()))
or somesuch. I can only look at struct members, which have very long and inconvenient names.
The debugger window is also limited to about 245 characters, so I can't write a script to generate a ridiculously long expression that will expand to the Nth node.
I'm trying to debug a problem that requires several hours of soaking to reproduce, so anything that requires adding code incrementally, recompiling, and redebugging will not be very helpful. If there's no other option, though, then I may have to do that.