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. Setting Visual Studio 2015 debugger

Setting Visual Studio 2015 debugger

Scheduled Pinned Locked Moved Solved General and Desktop
28 Posts 7 Posters 45.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.
  • D Offline
    D Offline
    DelNoble
    wrote on 17 Nov 2015, 21:52 last edited by
    #5

    I tried "Tools -> Options -> Build & Run -> Debuggers, but auto-detect is blank. Adding it manually would be an option I would take, but I don't know where the CDB would be located.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on 17 Nov 2015, 21:55 last edited by
      #6

      If you used the default location for Windows SDK it should be in C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe.
      Switch x64 to x86 for the 32bit version.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DelNoble
        wrote on 17 Nov 2015, 22:04 last edited by
        #7

        Thanks again for the help.
        Unfortunately this directory does not contain the CDB.
        Snip
        Volume in drive C has no label.
        Volume Serial Number is DC4F-CF6B

        Directory of C:\Program Files (x86)\Windows Kits\10\Debuggers\x64

        2015-11-09 09:20 PM <DIR> .
        2015-11-09 09:20 PM <DIR> ..
        2015-07-09 10:26 PM 1,514,688 dbghelp.dll
        2015-07-09 10:26 PM 114,368 srcsrv.dll
        2015-07-09 10:26 PM 156,864 symsrv.dll
        3 File(s) 1,785,920 bytes
        2 Dir(s) 210,909,159,424 bytes free

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on 17 Nov 2015, 22:05 last edited by
          #8

          As I said earlier - debugging tools are an optional component of Windows SDK. Did you select it in the installer?

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DelNoble
            wrote on 18 Nov 2015, 00:39 last edited by DelNoble
            #9

            I am 100% sure that when I first installed the SDK I "selected "debugging tools for windows" as one of the options, but nonetheless, to be 100% sure, I uninstalled the SDK and then reinstalled it. After reinstalling the SDK Qt Creator *is recognizing the debugger correctly. However, when I F5 it, I am still getting the same message. What else should I do?

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Chris Kawa
              Lifetime Qt Champion
              wrote on 18 Nov 2015, 06:57 last edited by
              #10

              Did you add it to your kit like I mentioned (don't forget to hit apply button ;) )?

              D 1 Reply Last reply 18 Nov 2015, 13:06
              0
              • F Offline
                F Offline
                Furkas
                wrote on 18 Nov 2015, 09:58 last edited by
                #11

                Hello,
                I'm interrested in your tchat, because I have the same question. Chris, I followed your procedure, but the install of VS sdk ask nothing. As it is ths "vssdk_full" from MS, I expexted all ok. But the C:\Program Files (x86)\Windows Kits\10\ directory has no Debuggers sub dir.
                Is there a special location for the vssdk ?

                1 Reply Last reply
                0
                • C Offline
                  C Offline
                  Chris Kawa
                  Lifetime Qt Champion
                  wrote on 18 Nov 2015, 11:35 last edited by
                  #12

                  @Furkas Visual Studio SDK is something else. It is an SDK for developing VS extensions and it does not contain "Debugging tools for Windows". We were talking about "Windows SDK", not "Visual Studio SDK". Note that Visual Studio 2015 also installs Windows SDK, but it's a stripped down version that does not have debugging tools component. To get full Windows SDK with debugging tools component use this link.

                  1 Reply Last reply
                  0
                  • C Chris Kawa
                    18 Nov 2015, 06:57

                    Did you add it to your kit like I mentioned (don't forget to hit apply button ;) )?

                    D Offline
                    D Offline
                    DelNoble
                    wrote on 18 Nov 2015, 13:06 last edited by DelNoble
                    #13

                    Yes,
                    I follow and documented, with pictures, the whole installation of the Windows SDK you recommended. Then I checked "Tools -> Options -> Build & Run -> Debuggers" to make sure that Qt Creator had found the debugger and, well, yes, it did. Please have a look on the link above.
                    Thanks so much Chris.

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      Chris Kawa
                      Lifetime Qt Champion
                      wrote on 18 Nov 2015, 13:15 last edited by
                      #14

                      That's the debuggers tab. That's the first half of what I suggested.
                      I meant did you add the debugger to the kit i.e. switch to "Kits" tab, select your kit and set one of the detected debuggers there.

                      D 1 Reply Last reply 18 Nov 2015, 13:48
                      0
                      • C Chris Kawa
                        18 Nov 2015, 13:15

                        That's the debuggers tab. That's the first half of what I suggested.
                        I meant did you add the debugger to the kit i.e. switch to "Kits" tab, select your kit and set one of the detected debuggers there.

                        D Offline
                        D Offline
                        DelNoble
                        wrote on 18 Nov 2015, 13:48 last edited by
                        #15

                        @Chris-Kawa
                        Oh, I see, yes your are right.
                        Here is what it looks like right now, is this OK?

                        1 Reply Last reply
                        0
                        • C Offline
                          C Offline
                          Chris Kawa
                          Lifetime Qt Champion
                          wrote on 18 Nov 2015, 13:51 last edited by Chris Kawa
                          #16

                          is this OK?

                          I can't tell from that picture. Click on the kit you are using in your project. The details for it will be shown below. In there there's a "debugger" combo box. If it's empty then open it, select CDB from the list and hit apply.

                          Btw. The list there shows Qt packages compiled for VS2012 and 2013. If you're using VS2015 none of these will work correctly. You can't mix & match VS versions.

                          D 1 Reply Last reply 18 Nov 2015, 14:07
                          0
                          • C Chris Kawa
                            18 Nov 2015, 13:51

                            is this OK?

                            I can't tell from that picture. Click on the kit you are using in your project. The details for it will be shown below. In there there's a "debugger" combo box. If it's empty then open it, select CDB from the list and hit apply.

                            Btw. The list there shows Qt packages compiled for VS2012 and 2013. If you're using VS2015 none of these will work correctly. You can't mix & match VS versions.

                            D Offline
                            D Offline
                            DelNoble
                            wrote on 18 Nov 2015, 14:07 last edited by DelNoble
                            #17
                            • Pic00
                              *Pic01
                              *Pic02
                              *Pic03
                              *Pic4
                              Here are the different shots that show the Kits.
                              Thanks Chris for all the help.

                            @Chris-Kawa

                            F 1 Reply Last reply 18 Nov 2015, 15:05
                            0
                            • D DelNoble
                              18 Nov 2015, 14:07
                              • Pic00
                                *Pic01
                                *Pic02
                                *Pic03
                                *Pic4
                                Here are the different shots that show the Kits.
                                Thanks Chris for all the help.

                              @Chris-Kawa

                              F Offline
                              F Offline
                              Furkas
                              wrote on 18 Nov 2015, 15:05 last edited by
                              #18

                              @DelNoble , @Chris Kawa
                              More information : i'm using W7 64b, and the 2015 has no dbg under W8. I think it's the reason of my first trouble.
                              I tried to load Windows SDK for W7, but the install failed.
                              I retry to use Qt with minGW, (my first attempt), but I'm stucked on the debug error "do not support python scripting...".
                              I deleted my minGW, et reloaded the latest version, carrefully installing the "mingw32_gdb_python" in the package.
                              But as I try to configure Qt kit with this debuger, it's marqued "Not recognised" in the type. Qt then has the error "Unable to create a debugger engine if the type "No engine"".
                              Where can I find a dbg runable with Qt and minGW, or, where can I find the information for a proper install ?
                              Thanks

                              J 1 Reply Last reply 18 Nov 2015, 15:14
                              0
                              • F Furkas
                                18 Nov 2015, 15:05

                                @DelNoble , @Chris Kawa
                                More information : i'm using W7 64b, and the 2015 has no dbg under W8. I think it's the reason of my first trouble.
                                I tried to load Windows SDK for W7, but the install failed.
                                I retry to use Qt with minGW, (my first attempt), but I'm stucked on the debug error "do not support python scripting...".
                                I deleted my minGW, et reloaded the latest version, carrefully installing the "mingw32_gdb_python" in the package.
                                But as I try to configure Qt kit with this debuger, it's marqued "Not recognised" in the type. Qt then has the error "Unable to create a debugger engine if the type "No engine"".
                                Where can I find a dbg runable with Qt and minGW, or, where can I find the information for a proper install ?
                                Thanks

                                J Online
                                J Online
                                jsulm
                                Lifetime Qt Champion
                                wrote on 18 Nov 2015, 15:14 last edited by
                                #19

                                @Furkas Just install MinGW which is provided through the Qt installer.

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

                                1 Reply Last reply
                                0
                                • F Offline
                                  F Offline
                                  Furkas
                                  wrote on 18 Nov 2015, 15:51 last edited by
                                  #20

                                  @jsulm : Don't find minGW through Qt Installer. I selected Qt Open Source in the download page. I do not plan to buy Qt.
                                  What version of Qt include the MinGW ?

                                  1 Reply Last reply
                                  0
                                  • C Offline
                                    C Offline
                                    Chris Kawa
                                    Lifetime Qt Champion
                                    wrote on 18 Nov 2015, 16:01 last edited by
                                    #21

                                    @Furkas Please don't hijack other people threads. If you want to ask about MinGW start another thread. MinGW is provided as an all-in-the-box option in the online installer for both commercial and free licenses.

                                    1 Reply Last reply
                                    0
                                    • C Offline
                                      C Offline
                                      Chris Kawa
                                      Lifetime Qt Champion
                                      wrote on 18 Nov 2015, 16:03 last edited by
                                      #22

                                      @DelNoble The kits without exclamation marks look ok. The other two are missing a debugger (again - see the "Debugger" combo in their properties). For those just select a debugger from that combo and you should be good to go.

                                      D 1 Reply Last reply 18 Nov 2015, 17:16
                                      0
                                      • C Chris Kawa
                                        18 Nov 2015, 16:03

                                        @DelNoble The kits without exclamation marks look ok. The other two are missing a debugger (again - see the "Debugger" combo in their properties). For those just select a debugger from that combo and you should be good to go.

                                        D Offline
                                        D Offline
                                        DelNoble
                                        wrote on 18 Nov 2015, 17:16 last edited by
                                        #23

                                        @Chris-Kawa
                                        Thank you Chris, it is working now. A thousand thanks and keep up the good work Chris... you're the man!!

                                        1 Reply Last reply
                                        0
                                        • C Offline
                                          C Offline
                                          Chris Kawa
                                          Lifetime Qt Champion
                                          wrote on 18 Nov 2015, 17:20 last edited by
                                          #24

                                          I'm glad I could help. If your problem is solved please mark the thread as solved from the "Topic Tools" button menu.

                                          A 1 Reply Last reply 12 Sept 2017, 06:17
                                          0

                                          14/28

                                          18 Nov 2015, 13:15

                                          • Login

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