[Interest] Debugging on Mac OS X

Rutledge Shawn Shawn.Rutledge at digia.com
Mon Feb 25 11:24:40 CET 2013


On 23 Feb 2013, at 6:29 PM, Paul Floyd wrote:

> Hi
> 
> I'm trying to build and run an app that a colleague wrote, without too much success. It works OK on Linux (and Windows, but I'm not certain of that).
> 
> I have
> Mac OS X 10.6.8
> XCode 4.0
> clang 3.2
> Qt 4.8.4 built with whatever compiler it chooses by default, probably GCC 4.2
> Qt 5.0.1 built with clang 3.2, release only
> 
> With Qt 4.8.4 and g++ 4.2, it crashes in the call to QApplication::exec() with an abort(). Even with the debug version of Qt, I can't step into this code. Any ideas how I can debug this problem?

For Mac debugging I usually configure Qt 5 like this:

./configure --developer-build -nomake tests -nomake examples -debug -no-framework

You will get only the debug versions of the libraries, so there won't be any trouble pointing Creator to use them.  I'm sure it's not the ideal way, but it works for me, so that Creator can step through Qt code in any module.  But webkit won't build with these settings.




More information about the Interest mailing list