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. Debugger not working even though I installed windows driver kit
QtWS25 Last Chance

Debugger not working even though I installed windows driver kit

Scheduled Pinned Locked Moved Unsolved General and Desktop
14 Posts 8 Posters 10.0k 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.
  • Shadowblitz16S Offline
    Shadowblitz16S Offline
    Shadowblitz16
    wrote on last edited by
    #1

    can someone specify why my debugger still doesn't work?

    I have never been able to debug in qt however recently I needed it so I downloaded windows driver kit because that's what was linked in the qt documentation.

    after I installed it I noticed that I have a kit auto detected under Tool->Options->Build & Run->Kits->Auto detected
    however it has a warning saying "No debugger set up."

    I'm not sure what to do at this point because I don't even know where the driver kits debugger is located.

    can someone care to explain how to fix this?

    kshegunovK 1 Reply Last reply
    0
    • AsimovA Offline
      AsimovA Offline
      Asimov
      wrote on last edited by Asimov
      #2

      I have to say I had the same problem. Check out my thread here
      https://forum.qt.io/topic/78454/qt-debugger-problem/3

      In the end I installed a version of QT and mingw instead of using MSVC. Now I can compile and debug also.

      SGaist gave me a link to the QT download page here and I downloaded QT and mingw 32bit.

      I am sorry I can't help you with your actual problem, but if you can't get it to work, then this is a good alternative.

      1 Reply Last reply
      0
      • Shadowblitz16S Shadowblitz16

        can someone specify why my debugger still doesn't work?

        I have never been able to debug in qt however recently I needed it so I downloaded windows driver kit because that's what was linked in the qt documentation.

        after I installed it I noticed that I have a kit auto detected under Tool->Options->Build & Run->Kits->Auto detected
        however it has a warning saying "No debugger set up."

        I'm not sure what to do at this point because I don't even know where the driver kits debugger is located.

        can someone care to explain how to fix this?

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by
        #3

        If you're refering to MSVC they distribute the console debugger (cdb) in a separate package, which, I believe, is called "Window Developer's Tools" or something akin. Do you have that installed?

        Read and abide by the Qt Code of Conduct

        1 Reply Last reply
        2
        • Shadowblitz16S Offline
          Shadowblitz16S Offline
          Shadowblitz16
          wrote on last edited by
          #4

          thankyou Asimov and kshegunov I have realized that I do have WinDbg (ARM) in my list of programs now, I'm just not sure how to use it.

          jsulmJ JKSHJ 2 Replies Last reply
          0
          • Shadowblitz16S Shadowblitz16

            thankyou Asimov and kshegunov I have realized that I do have WinDbg (ARM) in my list of programs now, I'm just not sure how to use it.

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

            @Shadowblitz16 You need to configure the kit you're using so it knows about that debugger. Then just set breakpoints in QtCreator and start debuging via F5 http://doc.qt.io/qtcreator/creator-debugging.html

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

            1 Reply Last reply
            1
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              ARM ? Are you cross-compiling ? If not you need a debugger matching your Qt build architecture.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1
              • Shadowblitz16S Offline
                Shadowblitz16S Offline
                Shadowblitz16
                wrote on last edited by Shadowblitz16
                #7

                Hey SGaist I have no idea what I'm doing I just followed the qt documentation

                all I know is what I told you guys. please look at my first post.

                1 Reply Last reply
                0
                • Shadowblitz16S Shadowblitz16

                  thankyou Asimov and kshegunov I have realized that I do have WinDbg (ARM) in my list of programs now, I'm just not sure how to use it.

                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #8

                  @Shadowblitz16 said in Debugger not working even though I installed windows driver kit:

                  WinDbg (ARM)

                  You have installed the debugger for the ARM architecture.

                  • ARM: Embedded devices (e.g. phones, tablets)
                  • x86: 32-bit desktop
                  • x86_64 or x64: 64-bit desktop

                  First, install the version that matches your version of Qt.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  2
                  • Shadowblitz16S Offline
                    Shadowblitz16S Offline
                    Shadowblitz16
                    wrote on last edited by Shadowblitz16
                    #9

                    ok let me look up my qt version.

                    1 Reply Last reply
                    0
                    • Chris KawaC Offline
                      Chris KawaC Offline
                      Chris Kawa
                      Lifetime Qt Champion
                      wrote on last edited by Chris Kawa
                      #10

                      The Debugger for MSVC desktop is called CDB. The docs should not point you to installing driver kit. That's an overkill and dated info. CDB is distributed as an optional component of the Windows SDK. If you installed Visual Studio you probably have Windows SDK installed already. Go to the add/remove window and "Modify" the Windows SDK installation. Select the "Debugging tools for Windows" optional component and QtCreator will pick it up automatically. You might need to select the debugger manually in your kit if it doesn't happen automatically.

                      1 Reply Last reply
                      2
                      • Shadowblitz16S Offline
                        Shadowblitz16S Offline
                        Shadowblitz16
                        wrote on last edited by
                        #11

                        @Chris-Kawa can you explain in more detail please?
                        maybe post some images of what to do as well?

                        J.HilkJ 1 Reply Last reply
                        0
                        • Shadowblitz16S Shadowblitz16

                          @Chris-Kawa can you explain in more detail please?
                          maybe post some images of what to do as well?

                          J.HilkJ Offline
                          J.HilkJ Offline
                          J.Hilk
                          Moderators
                          wrote on last edited by
                          #12

                          @Shadowblitz16
                          take a look at this Topic from about a year ago. It did help me setting up the debugger.


                          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                          Q: What's that?
                          A: It's blue light.
                          Q: What does it do?
                          A: It turns blue.

                          1 Reply Last reply
                          0
                          • Chris KawaC Offline
                            Chris KawaC Offline
                            Chris Kawa
                            Lifetime Qt Champion
                            wrote on last edited by Chris Kawa
                            #13

                            @Shadowblitz16 Right, here's a step by step with pictures:

                            1. Go to uninstall or change program list.
                              debugger step 1

                            2. Find "Windows Software Development Kit". There might be couple versions installed, depending on which components you selected during Visual Studio installation. Just pick the one with highest version number and click "Modify".
                              debugger step 2

                            3. Select "Change" and press "Next".
                              debugger step 3

                            4. Check "Debugging Tools For Windows", press "Change" and finish the installation. It might take a few moments.
                              debugger step 4

                            5. Open QtCreator, go to Tools->Options->Build&Run->Debuggers tab and verify that the newly installed debugger is detected. There should be 32 and 64 bit versions of CDB.
                              debugger step 5

                            6. Now go to the Kits tab, select the kit you're using and make sure the Debugger is set to the newly installed one. If it's not just select it from the combo and click "Apply". You might have different kits installed. The picture just shows one of mine. Do this for each MSVC kit you have.
                              debugger step 6

                            Now you should be able to debug your app using this kit.

                            1 Reply Last reply
                            7
                            • Shadowblitz16S Offline
                              Shadowblitz16S Offline
                              Shadowblitz16
                              wrote on last edited by
                              #14

                              thankyou so much Chris Kawa I will do this right away.

                              1 Reply Last reply
                              0
                              • Chris KawaC Chris Kawa referenced this topic on

                              • Login

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