Code::Blocks Forums
User forums => Help => Topic started by: vikas.mishra on May 06, 2011, 08:20:39 pm
-
Hello,
I have installed CodeBlocks nightly (2nd April version) along with MinGW build from http://code.google.com/p/qp-gcc/wiki/GDB. I am trying to debug a basic C++ program with STL vector class. When I turn on the watch window, it isn't showing the STL vector variable correctly.
The declaration of the STL Vector object is :
>>
vector<string> ret;
>>
The watch window shows this as
>>
ret = Couldn't find method std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char>..."
>>
This is shown in the attached the screenshot file attached.
When I enable "Display Debugger's log" and I use "p ret" in the window, it shows the result I expect. This is also shown in debugger_window.png screenshot. The debugger's log file is also attached.
Could someone help me identify what's wrong.
Thanks & Regards,
Vikas
-
Read this: http://forums.codeblocks.org/index.php/topic,14626.0.html
-
Thanks for your help. Problem is solved. I didn't realize that there were pretty printers inside Code::Blocks as well that were needed to be disabled. I disabled them and it is working as I expect.
Thanks for your help.
PS : I apologize about not having a recent thread or searched about this. I did read the thread that you pointed out, but obviously not carefully enough. It must have been quite late in the night here. :-)