User forums > Using Code::Blocks
see content of a vector in debugging
ollydbg:
@oBFusCATed
Thanks!! replace that string can solve this problem. :D
By the way, I'm reading some code in "DebuggerState::AddBreakpoint", it seems the breakpoints were recorded in a List structure. I'm wondering if this structure can be saved to harddisk(like browsetracker plugin), and reloaded when a project opened. Seems too complex :(
oBFusCATed:
Haha, While playing with the vectors I was wondering the same thing, we can start another thread where we can talk about that :)
killerbot:
I have carried out the same steps on my windows box and I run into the same issue.
Another wrap up of what I did, staring from rev 5649.
1) replaced share\CodeBlocks\scripts\gdb_types.script with the one from the vector.zip file attached a few posts above
2) modified that file : tointeger->wxString_ToLong (occured in 1 place)
3) copied the "stl-views-1.0.3.gdb" into "share\CodeBlocks"
4) debugger settings : init commands added : "source stl-views-1.0.3.gdb"
and I get ==> "Undefined command: "pvector". Try "help"."
IMPORTANT : when I copied the 'stl-views-1.0.3.gdb" next to my cbp file it works.
So it seems we either don't put that file in the correct place in the share path, or so;e code does not try to retrieve it correctly !!!
oBFusCATed:
--- Quote from: killerbot on June 15, 2009, 11:23:57 am ---3) copied the "stl-views-1.0.3.gdb" into "share\CodeBlocks"
4) debugger settings : init commands added : "source stl-views-1.0.3.gdb"
--- End quote ---
Try to use full path or path relative to the project's root
MortenMacFly:
--- Quote from: oBFusCATed on June 15, 2009, 09:06:48 am ---The updated version of the gdb_types.script uses tointeger, but the function that should be called is wxString_ToLong (Morten likes that name more and modified my bindings patch)
--- End quote ---
Sorry for the inconvenience. I didn't think this would cause such trouble... :(
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version