[Qt-interest] Max OS10.5 Unable to step into Qt functions while debugging
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Thu Mar 19 06:10:48 CET 2009
Hi Everybody,
I normally do my development on WinXP, and things usually work OK when recompiled on Mac. But after upgrading to 4.5, I am getting a font issue that needs to be debugged (QFontInfo says the correct symbol font is loaded, but the characters appear, instead of the symbol glyphs).
I have recently fresh installed OS X 10.5.6, qt 4.5.0 mac commercial, XCode 3.1.2 and Qt Creator 1.0.
With both XCode and QTCreator in debug config, I can step into inline functions in the Qt .h files, but not .cpp files. Eg, Stepping into QPainter.drawText(int,int,const QString&), shows the call to drawText(QPointF&,const QString&), then steps through QPointF constructor, then steps straight into the destructor of my string parameter temporary.
I can't remember if this worked in 10.4/Qt 4.4. The Qt Frameworks are being linked, but its not obvious where the debug versions of the libraries are, and whether they are being picked up. (In windows, the debug dlls have a different name.)
Can I debug the Qt code on Mac with the commercial build like I do with win-vs2005? The company policy is to only use the precompiled versions.
Do I have to change the .pro or xcodeproj for them to link the debug Qt code?
The project file:
TEMPLATE = app
TARGET = testMidihub
DESTDIR = ./Debug
CONFIG += debug
INCLUDEPATH += ./GeneratedFiles
INCLUDEPATH += ./GeneratedFiles/Debug
MOC_DIR += ./GeneratedFiles/debug
OBJECTS_DIR += debug
UI_DIR += ./GeneratedFiles
RCC_DIR += ./GeneratedFiles
HEADERS += ./testMidihub.h
SOURCES += ./testMidihub.cpp
SOURCES += ./main.cpp
FORMS += ./testMidihub.ui
include(../../test_common.pri)
Thanks in advance,
Tony Rietwyk
More information about the Qt-interest-old
mailing list