User forums > General (but related to Code::Blocks)

Debugger doesn't show certain things

(1/2) > >>

51423benam:
Hello,

the codeblocks debugger (gdb) doesn't show me things I want to watch. For example in the watch windows I would want to exand "this" like I can do in VS (so that I can view member vars easily. Also, I can not watch contents of standard datatypes well, for example of std::vector in VS I can just see all Datafields of it. And these are not the only thing. The watch windows is nearly useless for me. Is that the problem of gdb of of codeblocks?

oBFusCATed:
For this -> right click and select dereference this
For vector: install and setup python pretty-printer enabled gdb.

C::B's integration of the debugger is miles away from the one VS. On windows it is more troublesome than on linux.

51423benam:
Thanls for the reply. Where do I have to click on this? It doesn't work in the watches, so do I have to do that in the code? That would mean that I would have a 'this' in every class object I want to examine.

oBFusCATed:
You have to add 'this' in the watches window and do the right click operation or just add *this in the watches.

BlueHazzard:
Here are some links that describe the activation of pretty printers:
http://wiki.codeblocks.org/index.php/Pretty_Printers
https://code.google.com/archive/p/qp-gcc/wikis/GDB.wiki
http://forums.codeblocks.org/index.php/topic,21998.msg149737.html#msg149737

we should integrate this better in the debugger plugin... But there are TONS of things to do....
If you have some trouble for one specific thing, please ask specific questions.... General questions are hard to answer and don't lead to a target....

Navigation

[0] Message Index

[#] Next page

Go to full version