STL debuging

Keith Seitz keiths@redhat.com
Thu Jul 15 17:07:00 GMT 2004


On Thu, 2004-07-15 at 09:58, Przemyslaw Sliwa wrote:
> I have a question regarding STL debuging.
> I have a class which has a member of type <vector<valarray<double> > >.
> I would like to display all the elements of each valarray in the local variable view window.
> The insight debugger shows me only some strange first and last elements of the vector.
> 
> Is it in general possible to see the values I assign to the elements.

Unfortunately, gdb is still a really pathetic debugger for c++, and it
cannot display STL containers in any way even remotely user-friendly, as
far as I've ever seen demonstrated. Since insight is gdb, insight
limited by what gdb can do.

There might be some twisted command-line way to do it, but you'd have to
ask the folks on the gdb list.

Sorry,
Keith



More information about the Insight mailing list