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. Is it normally slow when debugging with GDB on Windows?
QtWS25 Last Chance

Is it normally slow when debugging with GDB on Windows?

Scheduled Pinned Locked Moved General and Desktop
16 Posts 7 Posters 8.6k 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.
  • A Offline
    A Offline
    Arrandale
    wrote on last edited by
    #1

    I have to wait at least few seconds to next instruction when debugging.
    Is CDB of MSVC faster? It's really bugging me for this slow speed.

    1 Reply Last reply
    0
    • JeroentjehomeJ Offline
      JeroentjehomeJ Offline
      Jeroentjehome
      wrote on last edited by
      #2

      Hi,
      normally debugging is slower then normal execution, but waiting seconds before the next instruction is not. To setup the CBD and MSVC compiler takes a bit of expert operations, so if you're not, stick to the MinGw debugger supplied. It should be fast enough for proper debugging.
      How did you install it? What QtCreator version are you running, what Qt version are you currently using.

      Greetz, Jeroen

      1 Reply Last reply
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        Also, please check whether you fit inside your RAM memory. If your OS decides to go into swapping, it will be slooooow.

        (Z(:^

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kuzulis
          Qt Champions 2020
          wrote on last edited by
          #4

          Hmm.. I'm too have this problem with CDB && QtCreator && MSVC2012.. For me, each instruction take over 15-20 second. O_o.

          My project include many plugins, libraries and so on. Also I can not change to MinGW kit, because a customer required MSVC compiler. So, I use for debugging the "DBGView ":http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx+ "QLoggingCategory":http://qt-project.org/doc/qt-5/qloggingcategory.html (with installing of custom "qInstallMessageHandler()":http://qt-project.org/doc/qt-5/qtglobal.html#qInstallMessageHandler with "OutputDebugString()":http://msdn.microsoft.com/ru-ru/library/windows/desktop/aa363362(v=vs.85).aspx function).

          So, the old and kind the print out helps for me. :)

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Arrandale
            wrote on last edited by
            #5

            I think i have enough memory(8GB) for debugging.
            I use Qt 5.3.1 for Windows 32-bit (MinGW 4.8.2, OpenGL, 735 MB).

            With CDB also slow?
            How about Qt Add-in for MSVC?

            While I downloading...
            Just curious "Visual Studio does not include the Debugging tools needed"
            What? Then how Visual Studio debugging work without debugging tools?

            1 Reply Last reply
            0
            • JeroentjehomeJ Offline
              JeroentjehomeJ Offline
              Jeroentjehome
              wrote on last edited by
              #6

              Hi,
              For debugging the MSVC compiled program you need to download the windows debugger set available for free from MS site. Be aware the installing the 32 bits on a 64 bits computer will make it extreme slow!! So maybe that is kuzulis his problem. Or maybe my memory failed and it is the other way around, but if you mix up the 32/64 versions you get a very very very slow debugger.
              The MinGw comes with the installed debugger and should work without any problems.

              Greetz, Jeroen

              1 Reply Last reply
              0
              • A Offline
                A Offline
                Arrandale
                wrote on last edited by
                #7

                Installed.

                What! It's really fast even it's connect to Microsoft symbol server
                but what it this? What if I don't have internet connection?

                And what do you mean?
                I should not install "Qt 5.3.1 for Windows 32-bit (VS 2013, OpenGL, 557 MB)"?
                Should I install "Qt 5.3.1 for Windows 64-bit (VS 2013, OpenGL, 571 MB)"?

                My OS is Windows 8.1 64-bits

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  kuzulis
                  Qt Champions 2020
                  wrote on last edited by
                  #8

                  bq. Be aware the installing the 32 bits on a 64 bits computer will make it extreme slow!! So maybe that is kuzulis his problem.

                  No, I have 32-bit OS, unfortunately.

                  1 Reply Last reply
                  0
                  • V Offline
                    V Offline
                    vezprog
                    wrote on last edited by
                    #9

                    I had this issue at one point. Do you have previous versions of the compilers installed? I used MSVC2010 compiler for a while with QtCreator and it was slow as death on 8.1. It was taking 10 seconds to step.

                    After uninstalling all of the previous compiler versions and moping up everything, I just installed 2012 first, then 2010, and everything debugs fine now (I can switch between the two with the same performance).

                    If I remember correctly, there is some information on microsoft's help pages that gives a recommended order on how to install different versions of the compilers.

                    1 Reply Last reply
                    1
                    • K Offline
                      K Offline
                      kuzulis
                      Qt Champions 2020
                      wrote on last edited by
                      #10

                      2 dvez43,

                      bq. I just installed 2012 first, then 2010, and everything debugs fine now

                      At me at first MSVC2012 was installed. After some months I installed MSVC2010 in addition to. Therefore, apparently, a problem not in sequence.

                      PS: Just it is a black magic. :)

                      1 Reply Last reply
                      0
                      • Y Offline
                        Y Offline
                        Yahzi
                        wrote on last edited by
                        #11

                        I have this problem too. The debugger is unbearably slow.

                        I am running Win 8.1. I have QT Creator 3.2.2 based on QT 5.3.2.

                        I have the latest WinSDK installed, and Visual Studio 10 Professional.

                        When I go to Projects/Build & Run/Debug configuration, it says it builds to this directory: ...Desktop_Qt_5_3_MSVC2010_OpenGL_32bit-Debug.

                        That implies it is running a 32 bit debugger. Under Projects/Build & Run/Manage Kits/Build & Run it says it auto-detects both x86 and x64 debuggers. So it knows I have a 64 bit debugger. How do I make it use that one?

                        1 Reply Last reply
                        0
                        • Y Offline
                          Y Offline
                          Yahzi
                          wrote on last edited by
                          #12

                          I have this problem too. The debugger is unbearably slow.

                          I am running Win 8.1. I have QT Creator 3.2.2 based on QT 5.3.2.

                          I have the latest WinSDK installed, and Visual Studio 10 Professional.

                          When I go to Projects/Build & Run/Debug configuration, it says it builds to this directory: ...Desktop_Qt_5_3_MSVC2010_OpenGL_32bit-Debug.

                          That implies it is running a 32 bit debugger. Under Projects/Build & Run/Manage Kits/Build & Run it says it auto-detects both x86 and x64 debuggers. So it knows I have a 64 bit debugger. How do I make it use that one?

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

                            Hi and welcome to devnet,

                            You are building a 32bit application so you need a 32bit debugger. More "here":http://msdn.microsoft.com/en-us/library/windows/hardware/ff539099(v=vs.85).aspx

                            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
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              Hi and welcome to devnet,

                              You are building a 32bit application so you need a 32bit debugger. More "here":http://msdn.microsoft.com/en-us/library/windows/hardware/ff539099(v=vs.85).aspx

                              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
                              0
                              • Y Offline
                                Y Offline
                                Yahzi
                                wrote on last edited by
                                #15

                                OK, I get that. But how do I make it not so slow? It's really slow.

                                1 Reply Last reply
                                0
                                • Y Offline
                                  Y Offline
                                  Yahzi
                                  wrote on last edited by
                                  #16

                                  OK, I get that. But how do I make it not so slow? It's really slow.

                                  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