Debug template members [message #88949] |
Thu, 11 December 2003 04:15  |
Eclipse User |
|
|
|
Originally posted by: lotus_one.hanmail.net
Hi.
I'm newbie to CDT and gdb also.
I use newmat library for my program.
It has Matrix and Column matrix implemented by some template style.
and the structure is like this
-------------------------------------------
ColumnVector A(10);
A.Matrix.GeneralMatrix.store
------------------------------------------------
store saves the matrix data in array form.
When Debugging, I'd like to view the data of this store.
In other compilers like VC++, I can easily see following forms in debug
watch window
A.Matrix.GeneralMatrix.store,10
A.Matrix.GeneralMatrix.store+3,10
etc..
Is there any way to see the store array when debugging?
lotus
|
|
|
|
Re: Debug template members [message #89085 is a reply to message #88994] |
Thu, 11 December 2003 23:39  |
Eclipse User |
|
|
|
Originally posted by: lotus_one.hanmail.net
Thank you for your kind sugesstion
I could vew the store by using "Display As Array" at the expression tab like
this.
---------------------------------
A.Matrix.GeneralMatrix.store
--------------------------------
It's interesting and Powerful ....
-lotus-
"Mikhail Khodjaiants" <mikhailk@qnx.com> wrote in message
news:bra3km$jgt$1@eclipse.org...
> The CDT provides the "Display As Array" and "Cast To Type" actions that
you
> can use to view variables and expressions in different ways.
>
> "Noweon Kang" <lotus_one@hanmail.net> wrote in message
> news:br9cet$k7d$1@eclipse.org...
> > Hi.
> >
> > I'm newbie to CDT and gdb also.
> > I use newmat library for my program.
> > It has Matrix and Column matrix implemented by some template style.
> > and the structure is like this
> >
> > -------------------------------------------
> > ColumnVector A(10);
> >
> > A.Matrix.GeneralMatrix.store
> > ------------------------------------------------
> > store saves the matrix data in array form.
> >
> > When Debugging, I'd like to view the data of this store.
> > In other compilers like VC++, I can easily see following forms in debug
> > watch window
> >
> > A.Matrix.GeneralMatrix.store,10
> > A.Matrix.GeneralMatrix.store+3,10
> >
> > etc..
> >
> >
> > Is there any way to see the store array when debugging?
> >
> >
> > lotus
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.07342 seconds