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:

m_pImgRetrieved = 0x84d7d18

I'd love to watch

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


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

Thanks so much.!!!


Quote from: oBFusCATed on January 07, 2010, 03:42:14 PM
Use


*my_pointer