Setup of Qt Creator to debug into Qt classes

后端 未结 5 1332
闹比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:22

    If you are using a prebuilded version just remap the source code location as described in http://doc.qt.io/qtcreator/creator-debugger-engines.html

    Mapping Source Paths

    To enable the debugger to step into the code and display the source code when using a copy of the source tree at a location different from the one at which the libraries where built, map the source paths to target paths:

    • Select Tools > Options > Debugger > General > Add.
    • In the Source path field, specify the source path in the debug information of the executable as reported by the debugger.
    • In the Target path field, specify the actual location of the source tree on the local machine.

    To get "the source path in the debug information of the executable as reported by the debugger", you can activate the "Use Tooltips in Stack-View when Debugging" option by right-clicking in the Stack View and move the mouse over a specific function call.

提交回复
热议问题