我已经在Qt 5.0上编写了代码,但是当我尝试调试它时,会出现一个错误消息窗口,显示“GDB进程意外终止(代码0)”以及空白控制台输出窗口。 我在谷歌搜索它,得到一些答案,如取消检查运行终端等,但他们没有工作。 有人能建议我这件事吗?
调试器日志:
THE FOLLOWING COMMAND CHECKS AVAILABLE FEATURES. AN ERROR IS EXPECTED.
<134-interpreter-exec console "disassemble 0 0"
dEXAMINING D:/projects_qt/build-contractfile-gdb-Debug/debug/contractfile
dELF SECTIONS:
dNO SECTION HEADERS FOUND. IS THIS AN EXECUTABLE?
sSetting up inferior...
<135set substitute-path C:/iwmake/build_mingw_opensource D:/QtInstall/5.0.2/Src
<136set substitute-path C:/ndk_buildrepos/qt-desktop/src D:/QtInstall/5.0.2/Src
<137set substitute-path Q:/qt5_workdir/w/s D:/QtInstall/5.0.2/Src
<138-interpreter-exec console "set auto-solib-add on"
<139-interpreter-exec console "python print 43"
<140-interpreter-exec console "pwd"
dGDB PROCESS FINISHED, status 0, code 0
dNOTE: ENGINE ILL ******
dState changed from EngineSetupRequested(1) to EngineShutdownRequested(20) [master]
dQUEUE: SHUTDOWN ENGINE
dCALL: SHUTDOWN ENGINE
dINITIATE GDBENGINE SHUTDOWN IN STATE 1, PROC: 0
dNOTE: ENGINE SHUTDOWN OK
dState changed from EngineShutdownRequested(20) to EngineShutdownOk(22) [master]
dState changed from EngineShutdownOk(22) to DebuggerFinished(23) [master]
dQUEUE: FINISH DEBUGGER
dNOTE: FINISH DEBUGGER
dHANDLE RUNCONTROL FINISHED
sDebugger finished.