User forums > Using Code::Blocks
Debugging QString
LordCB:
Ok I have taken the first way.
I put the script from eranif in qstring.script than I put the path to the script under
Settings -> Compiler & Debugger -> Debugger settings
That means:
I put the string X:\CODEBLOCKS\CB_DebuggerScripts\qstring.script
to Debugger initialization command
than I add (to the file gdb_types.script)
--- Code: --- // QString
driver.RegisterType(
_T("QString"),
_T("[^[:alnum:]_]*QString<.*"),
_T("Evaluate_QString"),
_T("Parse_QString")
);
--- End code ---
to the function
--- Code: ---function RegisterTypes(driver)
--- End code ---
after that
I also add
--- Code: --- Evaluate_QString(type, a_str, start, count)
{
return _T("printqstring ") + a_str;
}
function Parse_QString(a_str, start)
{
return a_str;
}
--- End code ---
to the gdb_types.script file
But nothing is to see
Where should the the line
--- Code: ---printqstring <variable_name>
--- End code ---
be placed ?
oBFusCATed:
What version do you use?
Try "Settings -> Compiler & Debugger -> Debugger -> show debugger pane" or something like that.
There you can see the communication between C::B and the debugger
LordCB:
I use nightlies 5716
LordCB:
There is no show debugger pane.
Am I blind?
Jenna:
Check "Settings -> Compiler and debugger... -> Debugger settings -> Display debugger's debug log".
And don't forget the keyword "source" in the debugger command.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version