[Qt-creator] Stepping into Qt code on OS X?
Eike Ziller
eike.ziller at nokia.com
Mon Feb 15 12:15:49 CET 2010
Hi,
On Feb 12, 2010, at 5:36 PM, ext Stephen Chu wrote:
> I am using 4.6 Qt SDK for Mac. I find that I can not step into Qt source
> code like I can on Windows.
>
> Does the Qt libs in SDK download not include debug information? Or I
> just didn't configure it right?
The Qt binary distribution contains both "debug" and "release" variants of the libraries.
But you have to explicitly tell the runtime linker that you want to use the debug libs - using release libs is the default, even if your application is compiled as "debug".
If you use a qmake / pro-file based project in Qt Creator you can set a flag in your run configuration, in Projects mode, in the run configuration select "Use debug version of frameworks".
For more detailed information about debugging on the Mac, the corresponding Apple documentation page is an interesting read:
http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html
Please also note that Mac OS X Snow Leopard (10.6) has a bug, that can be worked around like described here:
http://bugreports.qt.nokia.com/browse/QTBUG-4962
--
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks
Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
More information about the Qt-creator-old
mailing list