Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
debugging vectors
oBFusCATed:
Hm, trunk works with vector<int> for me.
At the beginning it wasn't working, because the update script wasn't run at C::B was using the old gdb_types.script.
Killerbot, can you verify that src/scripts/gdb_types.script and src/deve/share/codeblocks/scripts/gdb_types.script are the same and they have "pvector" in them?
killerbot:
I am trying in on linux. And the gdb_types.script has pvector in it (Evaluate_StlVector).
Could you show the int vector on how it looks like at your machine ??
EDIT : I just did a test on rev 5754 : it works when I add the vector as a watch variable, but when I look at the vector as part of the local variables list it doesn't work.
Gonna test in a few minutes on latest on trunk (switching to laptop ;-) ).
oBFusCATed:
The script functions are not invoked for the locals and function paramters
Jenna:
Works here (on linux).
Vector declared as:
--- Code: --- std::vector<int> v;
--- End code ---
filled with:
--- Code: --- v.push_back(1);
v.push_back(2);
v.push_back(3);
--- End code ---
Screenshot of the watches window attached.
EDIT:
too late :(
[attachment deleted by admin]
killerbot:
also work on my latest build on trunk.
But I saw another strange things, after adding some vectors, suddenly in the watch list the function arguments and local variables disappeared from the watches list ??
Why don't we invoke the script on locals ??
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version