User forums > Using Code::Blocks
Debugging a vector: How to look inside?
dr snuggles:
I would like to see the content of a vector while debugging. Does anyone know how I can do this?
Preferable an unfolding button in front of the vector in the watch list. At the moment you can only see the address of the vector start, finish and last element. I use the build of 15 April 2007 with GDB 6.3 :).
Deschamps:
Hello,
I'm not sure about having understood what's your question, because i can see all values within an array with the debugger watches, as you can see in this weird example:
Using Code::Blocks svn build rev 3888 (25/04/2007) and MinGW (gcc 3.4.5, gdb 5.2.1) under Windows XP SP2. I've not done anything special, but using the configuration by default.
Regards.
Russell:
Maybe he meant an actual C++ vector.
Deschamps:
Mmmm yes :) Must be. My level in C++ is really poor (still learning) ... and yes. I've not been able to debug (watch) the content of a C++ vector. Hope someone can answer dr snuggles.
dr snuggles:
Debugging a vector just like an array would be great :)
Navigation
[0] Message Index
[#] Next page
Go to full version