Author Topic: watches: structure breakout in locals, but not through a pointer  (Read 2284 times)

Offline crankypuss

  • Single posting newcomer
  • *
  • Posts: 6
The project i'm building contains structures of structures with pointers here and there.

When a structure is automatic it appears in the locals section as it reasonably should, and it can be expanded and its members expanded as needed, which is cool.

When there is a (local) pointer to a structure, it knows what the pointer points to (tooltips tell me that) but it doesn't indicate how to examine the structure.

How do you examine a structure through a pointer?

I found two references but neither tells me how to get the job done,

http://wiki.codeblocks.org/index.php/Debugging_with_Code::Blocks#In_12.11_or_latest_nightly_builds

http://forums.codeblocks.org/index.php?topic=13149.0

The latest info seems to be from August 21, 2010.

Can anyone explain how to take a pointer that is displayed in the watch window and look at what it's pointing at?

Thanks.

Offline crankypuss

  • Single posting newcomer
  • *
  • Posts: 6
Re: watches: structure breakout in locals, but not through a pointer
« Reply #1 on: March 26, 2017, 06:22:39 pm »
Nevermind, i eventually poked around and found that you have to right-click on the variable in the editor window and add watch then you can dereference and see the breakout in the watch window.  First reference i found said right-click but i couldn't find anywhere in the watch window where a right click was of use.

Suggest that in the tooltip which pops up while cursor is over a variable something indicate that there's more to be found out by right-clicking.
Suggest also that the tooltips over debugging icons like "step into" show the associated function-key.

Thanks guys for all your help.