[Qt-interest] line number '0' for Qt libs under Qt Creator'sdebugger
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Wed Nov 4 23:15:48 CET 2009
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