开发者

Can't start gdb.exe in Qt Creator

开发者 https://www.devze.com 2022-12-25 13:28 出处:网络
I have a project in Qt Creator that builds fine, but when I try to debug it I get this message: Adapter start failed

I have a project in Qt Creator that builds fine, but when I try to debug it I get this message:

Adapter start failed
Unable to start gdb 'C:\Qt\2010.02.1\mingw\bin\gdb.exe':
Process failed to start: The directory name is invalid

If I navigate to the debug build folder and directly run my compiled application, it will run fine,开发者_如何学C but obviously there's no debugging support. Additionally, gdb.exe is present at C:\Qt\2010.02.1\mingw\bin\gdb.exe, but Qt Creator can't seem to run it. How can I fix this problem?


I've had the same error, despite gdb did exist in the specified path and started without errors from command line. It turned out that the Working directory in the project settings didn't exist.


Tools->Options->Debugger->Gdb From Gdb location you can set the path to your preferred GBD.


use: "C:\Qt\2010.02.1\mingw\bin\gdb.exe"

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号