QtCreator调试器仅显示汇编程序

发布于 2024-11-15 18:48:11 字数 141 浏览 2 评论 0原文

我使用的是linux,我使用的是QTCreator。由于某种原因,当我在调试模式下运行程序时,当它出现故障时,我会得到汇编程序转储。没有堆栈跟踪或任何可读的东西。我想我的调试器曾经向我展示过这些东西,但不知何故已被关闭。我该怎么做才能把它找回来?

谢谢

I am using linux, and I am using QTCreator. For some reason, when I run a program in debug mode, when it faults, I get an assembler dump. There is no stack trace or anything Legibile. I think my debugger used to show me this stuff, but somehow has gotten switched off. What can I do to get it back?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

多情出卖 2024-11-22 18:48:11

您需要使用调试符号对其进行编译,使调试配置成为活动配置,然后重新编译并运行。或者自己提供 -ggdb gcc 开关

You need to compile it with the debug symbols, make the Debug configuration the active one, recompile and run. Or supply the -ggdb gcc switch yourself

永不分离 2024-11-22 18:48:11

真正的问题是我的 make 和 qmake 命令被交换了,所以 make 文件是用 -O3 而不是 -g 构建的,即使程序是从 Qt 在调试模式下编译的。

The real problem is that my make and qmake commands were swapped, so the make file was getting built with -O3 instead of -g, even when the program was compiled in debug mode from Qt.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文