Author Topic: Where to watch?  (Read 4123 times)

Offline jiapei100

  • Multiple posting newcomer
  • *
  • Posts: 20
    • Vision Open
Where to watch?
« 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
« Last Edit: January 07, 2010, 03:32:40 pm by jiapei100 »
Welcome to Vision Open
http://www.visionopen.com

Offline jiapei100

  • Multiple posting newcomer
  • *
  • Posts: 20
    • Vision Open
Re: Where to watch?
« Reply #1 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

Welcome to Vision Open
http://www.visionopen.com

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Where to watch?
« Reply #2 on: January 07, 2010, 03:42:14 pm »
Use

Code
*my_pointer
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline jiapei100

  • Multiple posting newcomer
  • *
  • Posts: 20
    • Vision Open
Re: Where to watch?
« Reply #3 on: January 07, 2010, 03:59:34 pm »
Welcome to Vision Open
http://www.visionopen.com