Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QT creator 7.2 gdb not recognized

QT creator 7.2 gdb not recognized

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 3 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dahu74fr
    wrote on last edited by
    #1

    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.

    jsulmJ 1 Reply Last reply
    0
    • D dahu74fr

      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.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @dahu74fr Did you also install MinGW using Qt Online/Offline Installer?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      D 1 Reply Last reply
      0
      • jsulmJ jsulm

        @dahu74fr Did you also install MinGW using Qt Online/Offline Installer?

        D Offline
        D Offline
        dahu74fr
        wrote on last edited by
        #3

        @jsulm yes mingw was installed with the online installer

        jsulmJ 1 Reply Last reply
        0
        • D dahu74fr

          @jsulm yes mingw was installed with the online installer

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @dahu74fr Do you see any warnings/errors in "Debuggers" tab?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          D 1 Reply Last reply
          0
          • jsulmJ jsulm

            @dahu74fr Do you see any warnings/errors in "Debuggers" tab?

            D Offline
            D Offline
            dahu74fr
            wrote on last edited by
            #5

            @jsulm What i see is that :
            Capture.JPG

            jsulmJ 1 Reply Last reply
            0
            • D dahu74fr

              @jsulm What i see is that :
              Capture.JPG

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @dahu74fr Put mouse cursor over the red icon with exclamation mark: what does the pop-up show?

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              D 1 Reply Last reply
              0
              • jsulmJ jsulm

                @dahu74fr Put mouse cursor over the red icon with exclamation mark: what does the pop-up show?

                D Offline
                D Offline
                dahu74fr
                wrote on last edited by dahu74fr
                #7

                @jsulm could not determine debugger type

                1 Reply Last reply
                0
                • cristian-adamC Online
                  cristian-adamC Online
                  cristian-adam
                  wrote on last edited by
                  #8

                  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 the EngineType to 1 and see what Qt Creator is doing afterwards.

                  D 1 Reply Last reply
                  0
                  • cristian-adamC cristian-adam

                    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 the EngineType to 1 and see what Qt Creator is doing afterwards.

                    D Offline
                    D Offline
                    dahu74fr
                    wrote on last edited by
                    #9

                    @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>

                    1 Reply Last reply
                    0
                    • cristian-adamC Online
                      cristian-adamC Online
                      cristian-adam
                      wrote on last edited by
                      #10

                      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 the debuggers.xml file contains since you won't be able to do any debugging.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved