Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Debugging in Qt Creator 5.15.0 doesn't work :

    General and Desktop
    5
    15
    1963
    Loading More Posts
    • 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
      dahu74fr last edited by

      HI,
      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 ?
      Best regards.

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @dahu74fr last edited by

        @dahu74fr said in Debugging in Qt Creator 5.15.0 doesn't work ::

        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".

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

        D 1 Reply Last reply Reply Quote 1
        • D
          dahu74fr @jsulm last edited by

          @jsulm
          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 :
          4436d38d-1547-4ff3-9794-030bb2ed0c22-image.png
          b5964259-e0ae-436f-b8e8-204550c37f2d-image.png
          e373a70f-90a2-495b-a0f4-e3b6ada045c6-image.png

          jsulm 1 Reply Last reply Reply Quote 0
          • jsulm
            jsulm Lifetime Qt Champion @dahu74fr last edited by

            @dahu74fr Strange.
            I can't reproduce this issue on my machine.
            Does this GDB work (I mean does it start in a terminal?)?

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

            D 1 Reply Last reply Reply Quote 0
            • D
              dahu74fr @jsulm last edited by

              @jsulm
              No. No terminal window. Only this message :
              ac5c957c-5ff3-4fe7-8fb4-55bdb2b43618-image.png

              jsulm 1 Reply Last reply Reply Quote 0
              • jsulm
                jsulm Lifetime Qt Champion @dahu74fr last edited by

                @dahu74fr I mean open a terminal and start GDB there to see whether it works.

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

                D 1 Reply Last reply Reply Quote 1
                • D
                  dahu74fr @jsulm last edited by

                  @jsulm
                  I started a terminal window in administrator and launch gdb.exe.
                  I have nothing that appear in the screen.
                  274f0f8e-3aea-4af7-b14b-6d62e7452498-image.png

                  jsulm 1 Reply Last reply Reply Quote 0
                  • jsulm
                    jsulm Lifetime Qt Champion @dahu74fr last edited by

                    @dahu74fr Looks like either gdb.exe is corrupted or your anti-virus application is blocking it.

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

                    D 1 Reply Last reply Reply Quote 1
                    • D
                      dahu74fr @jsulm last edited by

                      @jsulm
                      The Antivirus is the installed by Windows 10 64 bits version. Not an installed Antivirus.

                      jsulm 1 Reply Last reply Reply Quote 0
                      • jsulm
                        jsulm Lifetime Qt Champion @dahu74fr last edited by

                        @dahu74fr You could try to remove MinGW and then install it again.

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

                        D 2 Replies Last reply Reply Quote 0
                        • D
                          dahu74fr @jsulm last edited by

                          @jsulm
                          OK.
                          I will try tomorrow.
                          But i don't how to, because MingGW was installed by Qt install.

                          1 Reply Last reply Reply Quote 0
                          • D
                            dahu74fr @jsulm last edited by dahu74fr

                            @jsulm
                            I tried to remove MinGW and install it.
                            Same result.
                            I uninstalled Qt and installed an offline later version (5.12.9).
                            Same result.
                            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".
                            601d6185-b1ad-49f3-9263-5e79acacd2c9-image.png
                            c4bbb3cc-93f5-460c-8895-f15bd52e06af-image.png
                            e7546de0-ea17-4026-b850-cec4bea7a6ac-image.png
                            11609b83-f1ae-4754-b83a-63e585876676-image.png
                            0e4378e8-bb3f-4ceb-a6dc-5b125373e944-image.png

                            1 Reply Last reply Reply Quote 0
                            • P
                              PhilC 0 last edited by

                              Did you get this going?

                              I wonder if you have selected the 32bit compiler rather than 64 bit?

                              Phil

                              1 Reply Last reply Reply Quote 0
                              • S
                                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.

                                M 1 Reply Last reply Reply Quote 0
                                • M
                                  mengbing @sdeel last edited by mengbing

                                  @sdeel I have the same problem, and this method works for me, @jsulm Is it a bug for Qt Creator?
                                  b5f45efa-c783-480a-9411-ab632aa2922c-image.png
                                  66759304-d2d6-4d1d-a4be-9140afb48c70-image.png
                                  d3439c52-e984-4420-8157-76d3164da4d7-image.png
                                  34e09e8b-65f0-42b6-b353-e8388da599f5-image.png
                                  61333669-29b5-4ce3-9967-7bf4b00d0c4b-image.png

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post