
debuging STL under visual
Either drill down into your vector by clicking on the plus sign, or look in
the
vector header file to find the name of the member variable that holds
a pointer to the allocated memory. The name of this member variable
changed from VC++ 6.0 to .Net, but the technique remains the same.
The ,10 after vVect._First tells VC++ to display ten elements from
the memory pointed to by vVect._First, which can be handy.
.at() might not work because you never call that function in your code
(in which case it isn't generated) or because the de{*filter*} sometimes
has difficulty calling functions, especially template functions.
The de{*filter*} doesn't help very much with STL debugging, and templates
do cause a few difficulties with debugging, but it can be made to work.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Quote:
> Hi! thaks for haing answered to me! :)
> well, when I try this, Visual's de{*filter*} tells me it doesn't know symbol
> _First...
> And I already tryed to do
> vVect.at(2) to acces my 3rd element, but it is the same thing : symbol at
> not found!!!!
> Why does not this work?? are vectors so particulars to be unable to be
> interpreted by visual's de{*filter*}??????
> Or have I made any mistake? Have I forgotten any option???
> toms
> > Hi Toms,
> > vector overloads the [] operator, so it doesn't work in the VC de{*filter*}.
> > You can try the following in the watch window:
> > vVect._First,10
> > - or -
> > vVect._First[0].myClassMember
> > Hope this helps.
> > Best Regards,
> > Leo Chen