每次我去 QTCreator 调试一些代码时,都会收到这个 GDB 错误。
Current setup: Ubuntu 11.04
QT Creator version: 2.1.0
GDB Version: GNU gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2
Debugging starts
&"warning: GDB: Failed to set controlling terminal: Invalid argument\n"
我也尝试从 CLI 进行调试,结果如下:
charles@virtubuntu:~/Documents/it327/Day3/Lab1-build-desktop$ qtcreator -debug Lab1
Warning: HANDLE RUNCONTROL START FAILED (no active run control)
UNEXPECTED STATE TRANSITION: "State changed from EngineSetupFailed(2) to DebuggerFinished(21)."
Warning: State changed from EngineSetupFailed(2) to DebuggerFinished(21). (no active run control)
Warning: (gdb) (no active run control)
关于如何解决这个问题以便我可以实际调试我的代码,有什么想法吗?
答案1
显然这个问题在 Qt Creator 2.2.0 中已经修复,#2837。
2.2.1 版本将与 Oneiric 一起提供。