在 QT 创建器"This does not seem to be a Debug build."中调试

Debugging in QT Creator "This does not seem to be a Debug build."

本文关键字:Debug be build 调试 to not 创建 QT This does seem      更新时间:2023-10-16

我正在尝试使用 QTCreator 2.2.81 调试一些球拍代码,并不断收到消息"这似乎不是"调试"版本"。因此,我想确保我至少可以在 gdb 中调试程序。我发现我无法在 GDB 中执行此操作,将以下行添加到我的 .gdbinit 文件中:

handle SIGSEGV nostop noprint
handle SIG33 nostop noprint pass
handle SIG32 nostop noprint pass

完成此操作后,我能够使用 GDB 成功调试程序。我不介意使用GDB,但它不是我正常工作流程的一部分,我宁愿使用Qt Creator提供的内置功能。我确保选中该选项以在Qt Creator中使用my.gdbinit文件,但我仍然遇到了同样的问题。关于我需要做什么才能在qt中进行调试的任何建议?

您必须将以下内容添加到 .pro 文件中:

CONFIG += debug
相关文章: