Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Debugging in Qt Creator 5.15.0 doesn't work :
I installed Qt 5.15.0. In Maintenance Tool, in Qt 5.15.0, i selected MingGW 8.1.0 64-bit. In Developer and Designer Tools, i selected Debugging Tools for Windows, MingGW 8.1.0 64-bit. I can compile programs but when i want to debug, i have an error "Unable to create a debugging engine." If i go to "Tools ->Options -> Tools " in "Kits", i have in "Debuggers" in "Auto Detected", a red icon before "GNU gdb 8.1 for MingGW 8.1.0 64-bit" and it say that "Could not determine debugger type".
What i missed ?
in Qt 5.15.0
I guess you mean QtCreator? Qt is not an IDE.
For MinGW you should not select "Debugging Tools for Windows" - this is for Microsoft compiler. Use GDB with MinGW.
"Could not determine debugger type" - can you show what you have in "Path" there? It should be like "c:\Qt\Tools\mingw810_64\bin\gdb.exe".
Thanks for the reply,
I uninstalled "Debugging Tools for Windows" and try again with same result.
Regarding the path, it's OK. I have not the same as you write because i installed Qt in an another path than "C:\Qt".
But my path is OK. The file "gdb.exe" exist in my path. I tried to uninstall all Qt and install by default in "C:\Qt" and try again with same result.
Here are some print screen :
I can't reproduce this issue on my machine.
Does this GDB work (I mean does it start in a terminal?)?
No. No terminal window. Only this message :
@dahu74fr I mean open a terminal and start GDB there to see whether it works.
I started a terminal window in administrator and launch gdb.exe.
I have nothing that appear in the screen.
@dahu74fr Looks like either gdb.exe is corrupted or your anti-virus application is blocking it.
The Antivirus is the installed by Windows 10 64 bits version. Not an installed Antivirus.
@dahu74fr You could try to remove MinGW and then install it again.
I will try tomorrow.
But i don't how to, because MingGW was installed by Qt install.
dahu74fr last edited by dahu74fr
I tried to remove MinGW and install it.
I uninstalled Qt and installed an offline later version (5.12.9).
I don't what to do !
Perhaps a config that is not set ?
For information, i work on Windows 10 64 bits and installed Qt with "qt-unified-windows-x86-3.2.3-online.exe".
PhilC 0 last edited by
Did you get this going?
I wonder if you have selected the 32bit compiler rather than 64 bit?
sdeel last edited by
I had a similar issue here with Qt installed in a non-standard location on a system with various Python's. The solution that seems to have worked is to clear the path before starting Creator. For example, by using a batch file:
set path="" python --version C:\Qt\Tools\QtCreator\bin\qtcreator.exe
of course the python command fails, but it removes the red exclamation mark and "could not determine debugger type" error from the Creator dbg interface discussed above.