views:

739

answers:

3

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?

A: 

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

linjunhalida
I know that I can debug from the command line, but is there any way to get it working in Qt Creator?
Ben
I mean, found where configure the path, and add " , windows may have some error on process the path with ./\
linjunhalida
A: 

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

nchokoev
A: 

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.

Lёppa