[Qt-creator] Expanding a C string in the debugger takes forever?
Bryce Schober
bryce.schober at gmail.com
Mon May 21 20:40:12 CEST 2012
This is happening again, this time on a char[1024]. I note that while it's
in this mode, the mouse-over also stays on top of other windows. That's
helpful, to let me know if/when it wakes up, thanks for that feature! ;-)
This time it only took ~1.5 minutes to expand, not too bad! ;-) The
debugger log shows nothing particularly suspicious (I note it does even
have timestamps to validate my assertions). It just shows the expected
expansions:
<Rebuild Watchmodel 29>
sFinished retrieving data
<264bb options:fancy,autoderef,dyntype,partial vars:local.configfilename
expanded:local.configfilename,tooltip.636f6e66696766696c656e616d65
typeformats: formats: watchers:
>&"bb options:fancy,autoderef,dyntype,partial vars:local.configfilename
expanded:local.configfilename,tooltip.636f6e66696766696c656e616d65
typeformats: formats: watchers:\n"
>~"data=[{iname=\"local.configfilename\",name=\"configfilename\",addr=\"0xbffff094\",numchild=\"1\",childtype=\"char\",childnumchild=\"0\",addrbase=\"0xbffff094\",addrstep=\"0x1\",children=[{value=\"47\",},{value=\"104\",},{value=\"111\",},{value=\"109\",},{value=\"101\",},{value=\"47\",},{value=\"98\",},{value=\"115\",},{value=\"99\",},{value=\"104\",},
<snip\>
],type=\"char [1024]\",value=\"@0xbffff094\",},,],typeinfo=[]\n"
>264^done
Are you interested in the full debugger log?
Is there some way I can set the default char-array interpretation to not
blow up on my like this?
<>< <>< <><
Bryce Schober
On Thu, May 17, 2012 at 6:11 AM, André Pönitz <
andre.poenitz at mathematik.tu-chemnitz.de> wrote:
> On Wed, May 16, 2012 at 03:34:27PM -0700, Bryce Schober wrote:
> > Does anyone have any idea why it takes approximately forever to expand a
> C
> > string in the debugger? Granted it is a char[10000], but seriously - 10k
> isn't
> > much.
>
> This takes 524ms over here (Intel core 2 duo, 2.4 MHz)
>
> Is that "approximately forever"?
>
> If your results are much worse, consider attaching the debugger log
> (contents of the right pane of Windows->Views->Debugger Log)
>
> [If you expand a char[10000] (i.e. really an array of 10000 chars,
> not something that's displayed as C-style string), there are 10000
> child entries of the form '{value="48",},' generated, i.e. closer
> to 130k of data. Still not much, but I don't think the time is
> unreasonable either]
>
> Andre'
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20120521/75dc283f/attachment.html>
More information about the Qt-creator
mailing list