QtCreator调试器仅显示汇编程序
我使用的是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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要使用调试符号对其进行编译,使调试配置成为活动配置,然后重新编译并运行。或者自己提供 -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
真正的问题是我的 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.