Unable to select GDB in Qt Creator on Windows

I chose GDB instead of CDB as a debugger in Qt Creator on Windows:

enter image description here

But when I start debugging the program, it fails with this error:

  Unable to create a debugger engine of the type "No engine" 

It works if I select CDB from Combo. Why am I getting this error and how to fix it? I assume I have GDB if it is included in the combo box, right?

Edit: I see where there might be a problem, but still don't know how to fix it:

enter image description here

[Open the above image in a new tab to see full resolution.] It says “Not Recognized” for GDB.

Edit 2: I just remembered that I was using the MSVC compiler, and the Qt libraries were compiled for MSVC:

enter image description here

Perhaps the reason? Although GDB should be able to debug any executable file, not just the files generated by gcc, so I'm not sure if this is relevant.
+2
source share
1 answer

You cannot use GDB with compiled MSVC code. You seem to be mixing two.

CDB comes with Visual C ++. GDB comes with MinGW (-w64).

+3
source

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


All Articles