Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't start gdb.exe in Qt Creator

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, 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?

like image 255
Ben Avatar asked Jan 22 '23 08:01

Ben


2 Answers

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.

like image 64
Oleksii Serdiuk Avatar answered Jan 31 '23 02:01

Oleksii Serdiuk


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

like image 44
nchokoev Avatar answered Jan 31 '23 02:01

nchokoev