Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Debug template members
Debug template members [message #88949] Thu, 11 December 2003 04:15 Go to next message
Eclipse UserFriend
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 #88994 is a reply to message #88949] Thu, 11 December 2003 10:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

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
>
>
Re: Debug template members [message #89085 is a reply to message #88994] Thu, 11 December 2003 23:39 Go to previous message
Eclipse UserFriend
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
> >
> >
>
>
Previous Topic:Preprocessor symbols
Next Topic:cannot install 2.0M5 above eclipse 3.0M5
Goto Forum:
  


Current Time: Thu May 01 04:08:22 EDT 2025

Powered by FUDForum. Page generated in 0.07342 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top