viewing contents of dynamically allocated array

christopher j bottaro cjb at cs.utexas.edu
Mon Oct 14 21:10:33 BST 2002


ahh, yes...manually add vars to the watch?  i was doing stuff like 
*(pop.indivs+1), but the notation pop.indivs[1] works too?  how do i remove 
stuff from that list?

On Monday 14 October 2002 01:04 pm, you wrote:
> Am Montag, 14. Oktober 2002 17:48 schrieb christopher j bottaro:
> > hello,
> > i'm using kdevelop 2.1.3 and i was wondering if it was possible to do
> > this. for instance, if i had something like:
> > MyClass* x = new MyClass[10];
> >
> > when debugging, is there anyway to see all 10 elements of x?  as of now,
> > i click the plus sign next to x and it just derefs the first element.
> >
> > thanks a bunch,
> > christopher bottaro
>
> You can add MyClass[1], MyClass[2] ... by hand (in field under variables),
> and you see every member of the array you want.
>
> Frank
>
>
>
> -
> to unsubscribe from this list send an email to
> kdevelop-request at kdevelop.org with the following body: unsubscribe
> ;your-email-address+


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list