Setup of Qt Creator to debug into Qt classes

后端 未结 5 1340
闹比i
闹比i 2020-12-29 05:57

I want to setup Qt Creator (3.0) in a way, that I can debug into the Qt classes. So I download the corresponding src code (http://gitorious.org/qt/qt5) and install it in a d

5条回答
  •  心在旅途
    2020-12-29 06:11

    You have to compile your own Qt. That's the only way of getting this functionality. You're free to use any IDE you want, including a precompiled one. Simply register your self-compiled Qt as a kit in Qt Creator.

    Precompiled Qt simply doesn't ship with files with debug information. You can waste an unbounded amount of time trying to debug into precompiled Qt. It's not possible on Unix platforms since the required debug-information-containing objects are not shipped. Neither is it available on Windows, for the same reason - the .pdb files aren't there for MSVC builds, and the object files aren't there for mingw builds. That's seriously all there's to it.

    When building a -debug-and-release build of Qt, you must retain all of the following trees (folders) in order for debugging to work:

    • source,
    • build,
    • install prefix.

    I don't really know what prebuilt Qt is for. As far as I'm concerned, it shouldn't be offered: it just confuses the heck out of everyone. It's of no use to end users, and it's of no use to developers - I just can't see debugging seriously without access to Qt sources. It defeats the purpose of there being the sources, in a way. Sure, there should be a prebuilt Qt Creator with the prebuilt Qt libraries that it needs, but this shouldn't be exposed outside of it.

提交回复
热议问题