Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Could not determine debugger type
Forum Updated to NodeBB v4.3 + New Features

Could not determine debugger type

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
6 Posts 3 Posters 623 Views 2 Watching
  • 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.
  • 8Observer88 Offline
    8Observer88 Offline
    8Observer8
    wrote on last edited by 8Observer8
    #1

    I use:

    • Qt Creator 13.0.0
    • Qt 6.6.3
    • Windows 10

    ed521a53-2fcd-4e2c-8971-af63e62f8763-image.png

    bcb93019-eadc-4e07-b20c-43cc61973fb4-image.png

    I have made a clone of the Kit with manual debugger's settings:

    392822b5-5547-446e-a0fa-d5f07810f820-image.png

    4db2b291-f924-4a3d-975b-0b6f6a60e042-image.png

    It works but I cannot delete the bad Kit because the "Remove" button is inactive for debugger and Kit. Can I solve it or delete? Because I don't want to see it here:

    049fa3f7-62b6-460e-8985-09397823cf7e-image.png

    Axel SpoerlA 1 Reply Last reply
    0
    • 8Observer88 8Observer8

      I use:

      • Qt Creator 13.0.0
      • Qt 6.6.3
      • Windows 10

      ed521a53-2fcd-4e2c-8971-af63e62f8763-image.png

      bcb93019-eadc-4e07-b20c-43cc61973fb4-image.png

      I have made a clone of the Kit with manual debugger's settings:

      392822b5-5547-446e-a0fa-d5f07810f820-image.png

      4db2b291-f924-4a3d-975b-0b6f6a60e042-image.png

      It works but I cannot delete the bad Kit because the "Remove" button is inactive for debugger and Kit. Can I solve it or delete? Because I don't want to see it here:

      049fa3f7-62b6-460e-8985-09397823cf7e-image.png

      Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      @8Observer8

      Please try two things:

      • call gdb.exe --version, to confirm that gdb itself isn't broken.
      • just because I see Python in your kits: Check the pythonpath system variable in your advanced system settings and try removing it completely. I have vague memories of a stack-overflow thread, which found out that gdb might not get found with certain paths in that variable. Just couldn't find it right now, it's been a few years.....

      Software Engineer
      The Qt Company, Oslo

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

        The auto-detected debuggers are actually being set up by sdktool.

        Their configuration is saved in C:\Qt\Tools\sdktool\share\qtcreator\QtProject\qtcreator\debuggers.xml. For some reason your configuration is broken.

        Mine looks like this:

         <data>
          <variable>DebuggerItem.0</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="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>
          </valuemap>
         </data>    
        
        1 Reply Last reply
        2
        • 8Observer88 Offline
          8Observer88 Offline
          8Observer8
          wrote on last edited by 8Observer8
          #4

          Mine is the same. I even tried to compare yours file with mine using https://text-compare.com/ I mean from <data> to </data>

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE QtCreatorDebuggers>
          <!-- Written by sdktool , 2024-04-16T17:42:52. -->
          <qtcreator>
           <data>
            <variable>DebuggerItem.0</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="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>
            </valuemap>
           </data>
           <data>
            <variable>DebuggerItem.Count</variable>
            <value type="int">1</value>
           </data>
           <data>
            <variable>Version</variable>
            <value type="int">1</value>
           </data>
          </qtcreator>
          

          @Axel-Spoerl said in Could not determine debugger type:

          call gdb.exe --version, to confirm that gdb itself isn't broken

          >gdb.exe --version
          GNU gdb (GDB) 11.2
          

          @Axel-Spoerl said in Could not determine debugger type:

          just because I see Python in your kits: Check the pythonpath system variable in your advanced system settings and try removing it completely. I have vague memories of a stack-overflow thread, which found out that gdb might not get found with certain paths in that variable. Just couldn't find it right now, it's been a few years.....

          I didn't find pythonpath. What is advanced system settings?

          22c612c2-688e-4b20-9865-bbae87fc0577-image.png

          Axel SpoerlA 1 Reply Last reply
          0
          • 8Observer88 8Observer8

            Mine is the same. I even tried to compare yours file with mine using https://text-compare.com/ I mean from <data> to </data>

            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE QtCreatorDebuggers>
            <!-- Written by sdktool , 2024-04-16T17:42:52. -->
            <qtcreator>
             <data>
              <variable>DebuggerItem.0</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="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>
              </valuemap>
             </data>
             <data>
              <variable>DebuggerItem.Count</variable>
              <value type="int">1</value>
             </data>
             <data>
              <variable>Version</variable>
              <value type="int">1</value>
             </data>
            </qtcreator>
            

            @Axel-Spoerl said in Could not determine debugger type:

            call gdb.exe --version, to confirm that gdb itself isn't broken

            >gdb.exe --version
            GNU gdb (GDB) 11.2
            

            @Axel-Spoerl said in Could not determine debugger type:

            just because I see Python in your kits: Check the pythonpath system variable in your advanced system settings and try removing it completely. I have vague memories of a stack-overflow thread, which found out that gdb might not get found with certain paths in that variable. Just couldn't find it right now, it's been a few years.....

            I didn't find pythonpath. What is advanced system settings?

            22c612c2-688e-4b20-9865-bbae87fc0577-image.png

            Axel SpoerlA Offline
            Axel SpoerlA Offline
            Axel Spoerl
            Moderators
            wrote on last edited by
            #5

            I didn't find pythonpath. What is advanced system settings?

            I am not a Windows specialist, but you can check here.

            Software Engineer
            The Qt Company, Oslo

            1 Reply Last reply
            1
            • 8Observer88 Offline
              8Observer88 Offline
              8Observer8
              wrote on last edited by 8Observer8
              #6

              When I installed Python I set "Add Python 3.8 to path":

              image.png

              The path was added to the user Path variable or I added the path manually. I don't remember:

              84467979-1bac-4a52-aaca-757c009b60d9-image.png

              I cannot see the system Path variable because the Edit button is inactive:

              8e5160f4-4a93-4cc2-98b8-3d4bedccb40b-image.png

              I tried temporary to remove the E:\ProgramFiles\Python\Python38\ path from the user Path and I don't have any warnings:

              2ec1997a-cd79-4de7-86ab-09342a6033ba-image.png

              And Python works too in the CMD. I think I don't need to add Python to the user Path variable manually. I didn't think Python could affect GDB. Without you, I would not have solved this problem. Thank you very much!

              1 Reply Last reply
              0
              • 8Observer88 8Observer8 has marked this topic as solved on

              • Login

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