[Qt-creator] Debugger-resistant routine

Bob Babcock wssddc at nospam.gis.net
Sat Aug 21 21:28:25 CEST 2010


Bob Babcock <wssddc at nospam.gis.net> wrote in
news:Xns9DDBD2118CBDwssddcgisnet at 62.70.27.71: 

> Environment:
>   Windows XP
>   Qt 4.7 beta 2
>   Qt Creator 2.0.80 or snapshot from 21-Aug-2010 00:32
>   MinGW and GDB
> 
> Problem:
> A calls B calls C.  When stepping through B with the debugger in
> Creator, the Locals and Watchers window is empty, insert new watch
> item does nothing, and hovering the mouse over variables does not show
> values in a tooltip.  All of these functions work when stepping
> through A or C, but it's B I need to debug.  I don't think B is
> clobbering anything, if only because I insert a breakpoint before it
> does anything. 

In the debugger view, I see:

DUMPER FAILED: 57^error,data={msg="Error occurred in Python command.",
logstreamoutput="bb options:fancy vars: expanded: typeformats: 
formats: watchers:4469736b6e6f23746f6f6c7469702e78\n
Error occurred in Python command.\n",consolestreamoutput=
"Traceback (most recent call last):\n
File \"D:/Comp/Qt/qtcreator-2.0.80/share/qtcreator/gdbmacros/dumper.py\", 
line 1046, in invoke\n    print('data=[' + d.output + ']')\n
File \"<string>\", line 11, in write\n
UnicodeEncodeError: 'ascii' codec can't encode character u'\\xf0'
in position 4062: ordinal not in range(128)\n"}

Unfortunately, I don't know any python, so I'm not sure how to fix this.  
If I replace line 1046 in dumper.py with
  print('data=[broken]')
the error in debugger view goes away, but the locals and watchers window 
remains empty.



More information about the Qt-creator-old mailing list