User forums > Using Code::Blocks
see content of a vector in debugging
killerbot:
I know for example that MSVC debugger warns about big arrays (saying it might take some time), and asks to go ahead.
We could do a similar things, question is what is big (above 20, above 50), maybe we could allow the user to choose how much elements at that time (we can already get the number of elements from GDB).
I will apply with the current situation, it is a start. With more feedback coming we will be pushed into the right direction ;-)
--- Quote ---p.s. If you are using trunk version of C::B replace tostring with the wxString_ToLong
--- End quote ---
the script does not contain any "tostring", am I missing something ?
oBFusCATed:
My mistake
replace tostring with tointeger in my post
oBFusCATed:
Does someone has any idea, how can I profile the debugger plugin?
MortenMacFly:
--- Quote from: oBFusCATed on June 11, 2009, 07:40:37 pm ---OK, Here is the cleaned up version. (see the attachment)
--- End quote ---
BTW, this:
--- Quote ---1. copy the "stl-views-1.0.3.gdb" file to the project directory.( This directory serves as working directory as GDB.exe starts)
--- End quote ---
Should be handled differently. Nobody should need copy the file to each and every project. I suggest a setting in the debugger's options. Probably this can be done through initialisation commands, is that possible?!
oBFusCATed:
There is no requirement for stl-views-1.0.3.gdb to be in the project's directory.
Mine is somewhere in ~/projects/codeblocks.
We can put it in the share folder (/usr/share/codeblocks or ~/.codeblocks/share/codeblocks/ ) and put a checkbox in the debugger's options dialog to enable it ( "Debugging C++ STL classes" for example)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version