[Qt-interest] line number '0' for Qt libs under Qt Creator'sdebugger
Garth Dahlstrom
ironstorm at gmail.com
Thu Nov 5 23:20:07 CET 2009
Thanks Scott!
I rebuilt with -debug in the config and now I get line numbers during
the callbacks.
This was my config line for static + debug on Windows:
configure -opensource -static -debug -fast -no-dsp -no-vcproj -no-
phonon-backend -no-dsp -no-vcproj -no-incredibuild-xge -no-plugin-
manifests -no-exceptions
I also deleted everything after "first:" in examples/Makefile and
demos/Makefile (to keep from building examples and demos) and then ran
make to build everything else.
Guess the shipped binaries would have debug symbols stripped out to
save space? Good to know.
Cheers,
-G
On 2009-11-04, at 5:15 PM, Scott Aron Bloom wrote:
> On mac.. make sure you are exporting DYLD_IMAGE_SUFFIX=_debug
>
> And make sure your qt library is built with debug and release.
>
> As to mingw.. make sure the link line is picking up the debug
> libraries
>
> Scott
>
>
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com
> [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Garth
> Dahlstrom
> Sent: Wednesday, November 04, 2009 2:02 PM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] line number '0' for Qt libs under Qt
> Creator'sdebugger
>
> Hi all,
>
> A co-worker and I are working on a project built on Qt that requires
> us
> to patch Qt to add Java support to QtWebkit (we will eventually
> contribute these changes back to the community btw).
>
> As part of this effort we need to be able to debug within the Qt
> libraries effectively, currently we are stuck with an issue where by
> all
> Qt line numbers in the debugger's stack under Qt Creator always appear
> as '0'. (refer to the attached screenshot or
> http://imgbin.org/index.php?page=image&id=899
> )... this means we are stuck injecting qDebug statements to Qt and
> relinking... which is painful to say the least.
>
> Any tips or steps to getting line numbers for the Qt stuff under debug
> would be extremely helpful.
>
> Here are the configurations I've tried so far - they all experience
> this
> behaviour of '0' for Qt line numbers shown in the image:
> -- On Snow Leopard (OSX 10.6.1) --
> - Qt 4.5.3 (mac ports) + Qt Creator 1.2
> - Qt 4.6 Preview 1 + Qt Creator 1.3 Preview All with and without
> DYLD_IMAGE_SUFFIX=_debug (the _debug frameworks to crash the app on
> start because of this Apple bug http://www.openradar.appspot.com/7309435
> )
>
> -- Windows XP --
> Qt 4.5 + mingw + Qt Creator 1.2
> Qt 4.6 Preview 1 + mingw + Qt Creator 1.3 Preview
>
> With each of the above configurations had valid 'debug helper' built.
>
> Please shout if you know anything I can try to fix this.
>
> Thanks,
>
> -G
>
>
More information about the Qt-interest-old
mailing list