tags:

views:

76

answers:

1

I download the qt framework and debugging helper, I can debug my source with Qt creator, but I can't step in to the Qt source code, I have download the source of Qt, how to config the source to let me can trace into the source? or, Must I compile the library from source to do this?

I can trace into Qt source Under Windows using Visual c++, but On Mac, with Qt creator can't.

+1  A: 

The binary downloads of Qt for Mac do not include any debugging info. The "debug" version of the downloads do. But Nokia forgot to include the source files so it doesn't help you either. Here's a bug reported on this issue: http://bugreports.qt.nokia.com/browse/QTBUG-8433

The only way to step into (most) Qt source files on Mac is to download the source files package and build it yourself. Even that doesn't work out of the box (if you can call it that). The installed directory is missing the 'src' sub-directory which is where all Qt source files need to go. The solution is to create a symbolic link to the 'src' directory in your build directory.

Even that doesn't work 100% of the time. I still run into Qt functions that I can't step into. But that's rare after all the mocking.

Stephen Chu
Thanks very much for your help:)
jnblue