QT creator 7.2 gdb not recognized
-
Hello
i tried to install QT creator 7.2 on my computer running windows 10.
Everything is ok except for the debugger gdb. it is not recognized.
i install the same package on the computer of a friend that i was preparing and all is ok.
debugging works fine. i tried to copy all the installation from the friend computer and paste on my computer and have the same issue, gdb not recognized.
some one has an explanation ?
thanks in advance. -
The data that you are seeing in the dialog is saved under
%appdata%\QtProject\qtcreator\debuggers.xml
I have for example a MinGW GDB 11.2.0 like this:
<data> <variable>DebuggerItem.2</variable> <valuemap type="QVariantMap"> <valuelist type="QVariantList" key="Abis"> <value type="QString">x86-windows-msys-pe-64bit</value> </valuelist> <value type="bool" key="AutoDetected">true</value> <value type="QString" key="Binary">C:/Qt/Tools/mingw1120_64/bin/gdb.exe</value> <value type="QString" key="DetectionSource"></value> <value type="QString" key="DisplayName">GNU gdb 11.2.0 for MinGW 11.2.0 64-bit</value> <value type="int" key="EngineType">1</value> <value type="QString" key="Id">Debugger.qt.tools.win64_mingw900</value> <value type="QDateTime" key="LastModified">2022-03-21T04:50:11.000</value> <value type="QString" key="Version">11.2.0</value> <value type="QString" key="WorkingDirectory"></value> </valuemap> </data>
You could close Qt Creator. Open the
debuggers.xml
file and change theEngineType
to1
and see what Qt Creator is doing afterwards. -
@cristian-adam My file is different, there is nothing refering to MinGw
Here is my file :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorDebuggers>
<!-- Written by QtCreator 7.0.2, 2022-07-13T10:48:50. -->
<qtcreator>
<data>
<variable>DebuggerItem.0</variable>
<valuemap type="QVariantMap">
<valuelist type="QVariantList" key="Abis">
<value type="QString">x86-windows-msvc2017-pe-64bit</value>
</valuelist>
<value type="bool" key="AutoDetected">true</value>
<value type="QString" key="Binary">C:/Program Files/Windows Kits/10/Debuggers/x64/cdb.exe</value>
<value type="QString" key="DetectionSource"></value>
<value type="QString" key="DisplayName">Autodétection CDB à C:\Program Files\Windows Kits\10\Debuggers\x64\cdb.exe</value>
<value type="int" key="EngineType">1</value>
<value type="QString" key="Id">{f5c87555-1542-46cf-8a80-3388a215b48c}</value>
<value type="QDateTime" key="LastModified">2018-10-23T02:10:58.000</value>
<value type="QString" key="Version">10.0.17763.132</value>
<value type="QString" key="WorkingDirectory"></value>
</valuemap>
</data>
<data>
<variable>DebuggerItem.1</variable>
<valuemap type="QVariantMap">
<valuelist type="QVariantList" key="Abis">
<value type="QString">x86-windows-msvc2017-pe-32bit</value>
</valuelist>
<value type="bool" key="AutoDetected">true</value>
<value type="QString" key="Binary">C:/Program Files (x86)/Windows Kits/10/Debuggers/x86/cdb.exe</value>
<value type="QString" key="DetectionSource"></value>
<value type="QString" key="DisplayName">Autodétection CDB à C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\cdb.exe</value>
<value type="int" key="EngineType">1</value>
<value type="QString" key="Id">{202436f3-0100-4d32-9fa0-3ddf770ff5d0}</value>
<value type="QDateTime" key="LastModified">2018-10-23T01:41:18.000</value>
<value type="QString" key="Version">10.0.17763.132</value>
<value type="QString" key="WorkingDirectory"></value>
</valuemap>
</data>
<data>
<variable>DebuggerItem.Count</variable>
<value type="int">2</value>
</data>
<data>
<variable>Version</variable>
<value type="int">1</value>
</data>
</qtcreator> -
The other location where the debugger can reside is
c:\Qt\Tools\QtCreator\share\qtcreator\QtProject\qtcreator\debuggers.xml
.But if
gdb --version
doesn't start from command line, then it doesn't matter what thedebuggers.xml
file contains since you won't be able to do any debugging.