为什么我不能在Qt Creator中调试我的应用程序? 我使用Qt Creator,并在C++中开发了一个QML应用程序。我还没有弄清楚如何调试我的应用程序。在“项目设置”中,我选择了“调试”
当我构建并尝试在调试模式下运行应用程序时,我得到的不是一个而是三个相同的提示,每个提示都告诉我:为什么我不能在Qt Creator中调试我的应用程序? 我使用Qt Creator,并在C++中开发了一个QML应用程序。我还没有弄清楚如何调试我的应用程序。在“项目设置”中,我选择了“调试”,c++,qt,debugging,qml,qt-creator,C++,Qt,Debugging,Qml,Qt Creator,当我构建并尝试在调试模式下运行应用程序时,我得到的不是一个而是三个相同的提示,每个提示都告诉我: This does not seem to be a "Debug" build. Setting breakpoints by file name and line number may fail. Section .debug_info: Not found. Section .debug_abbrev: Not found. Section .debug_line: Not found. S
This does not seem to be a "Debug" build.
Setting breakpoints by file name and line number may fail.
Section .debug_info: Not found.
Section .debug_abbrev: Not found.
Section .debug_line: Not found.
Section .debug_str: Not found.
Section .debug_loc: Not found.
Section .debug_range: Not found.
Section .gdb_index: Not found.
Section .note.gnu.build-id: Found.
Section .gnu.hash: Found.
Section .gnu_debuglink: Not found.
以下是我的有效Qml调用
,如项目设置中所示:
qmake /home/aras/Projects/BADASSUI/BADASSUI.pro -r -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
我到底错过了什么?对于我来说,在我刚刚安装QML并开始使用QML的一些项目之后,Qt Creator始终能够调试QML。查看菜单Tools/Options/Debuggers,看看gdb是如何设置的。您收到一条无法找到gdb_索引的消息。另外,请查看左侧的“项目”选项卡,并确保您正在构建调试配置。对于我来说,在我刚刚安装了Qt Creator并使用QML启动了一些项目之后,Qt Creator始终能够调试QML。查看菜单Tools/Options/Debuggers,看看gdb是如何设置的。您收到一条无法找到gdb_索引的消息。另外,请查看左侧的“项目”选项卡,确保您正在构建调试配置。