Hello,
here a little How to set up the new Debugger Interface in Codeblocks to display wxWidgets types like wxString...
1) Download an Python enabled GDB described here:
https://code.google.com/p/qp-gcc/wiki/GDB2) Download the wxWidgets GDB Python-script from here:
http://svn.wxwidgets.org/viewvc/wx/wxWidgets/trunk/misc/gdb/print.py?view=markup I had to add:
import datetime
import gdb
at the beginning of the file
3) Open C::B -> Settings -> Debugger -> Default
Add to "Debugger intializaton commands":
python
import sys
import gdb
sys.path.insert(0,'path/to/wxWidgets-python-script')
import script_name
end
set print pretty 1
you have to replace "path/to/wxWidgets-python-script" with your path to the wxWidgets script
and script_name with the filename of your script, without .py
The filename can't contain "-" or spaces
4) Remove tick from "Enable watch script"
5) enjoy the big advantage to see what is stored in you wxString Variable
if you have trouble make a tick at C::B -> Settings -> Debugger -> Common -> Full (Debug) log. Now you can see the full output of the gdb in the debugger log window.
sorry for the shortness, but my English is really bad....
greetings