Cannot 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 go to the debug build folder and directly run my compiled application, it will work fine, but obviously there is no debugging support. In addition, gdb.exe is present in C: \ Qt \ 2010.02.1 \ mingw \ bin \ gdb.exe, but Qt Creator does not seem to start it. How can I fix this problem?

+4
source share
3 answers

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

+2
source

I had the same error, despite the fact that gdb did in the specified path and started without errors from the command line. It turned out that the working directory does not exist in the project settings.

+7
source

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

0
source

Source: https://habr.com/ru/post/1305719/


All Articles