Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: jiapei100 on January 07, 2010, 03:24:24 pm

Title: Where to watch?
Post by: jiapei100 on January 07, 2010, 03:24:24 pm
Hi, I'd love to watch my concerned variables' values.
Where to watch?

Right click the variable and click "watch", nothing displayed at all....

Cheers
JIA
Title: Re: Where to watch?
Post by: jiapei100 on January 07, 2010, 03:36:59 pm

ok, now, watched.
By http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks

However, for pointer, it only shows the address.

Unlike Visual Studio or Eclipse, some times, it may display the values that this pointer is pointing to.


So, how to see the values that this pointer is pointing to?

In my case:

Code
m_pImgRetrieved = 0x84d7d18

I'd love to watch

Code
m_pImgRetrieved->depth

instead. How to ?

Best Regards
JIA

Title: Re: Where to watch?
Post by: oBFusCATed on January 07, 2010, 03:42:14 pm
Use

Code
*my_pointer
Title: Re: Where to watch?
Post by: jiapei100 on January 07, 2010, 03:59:34 pm

Thanks so much.!!!


Use

Code
*my_pointer