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. Debugging with CDB incredibly slow
Forum Updated to NodeBB v4.3 + New Features

Debugging with CDB incredibly slow

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 3 Posters 1.4k 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.
  • O Offline
    O Offline
    olowo726
    wrote on last edited by
    #1

    Hi,

    I've seen several posts about this topic but none have been able to solve my problem so I'll give it a try here.

    Debugging with CDB and Qt creator is incredibly slow

    • The problem is present in both Creator 6 and 7
    • Debugging the same app in Visual Studio works perfectly fine
    • It takes a long time to launch my app with the debugger loading dlls painfully slow.
    • However the worst is setting a breakpoint. Then it can literally be 5 minutes before you can start stepping. Each step can also take 5 minutes.
    • It seems to get worse when my app grows. It's now about 200K lines of C++.

    Any ideas?

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

      Qt Creator 6 and 7 use both Qt 6. Does a Qt 5 build of Qt Creator behave differently? https://download.qt.io/snapshots/qtcreator_qt5/7.0/7.0.0/

      Visual Studio is not using cdb.exe for debugging, so it's not a fair comparison.

      It might be that the antivirus is interfering or that there is a network debug server query.

      And finally, did you install the "Qt Debug Information Files"?

      1 Reply Last reply
      1
      • O Offline
        O Offline
        olowo726
        wrote on last edited by
        #3

        "Does a Qt 5 build of Qt Creator behave differently?" Nope

        I have no antivirus installed and I'm not debugging over network. And yes, "Qt Debug Information Files" are installed.

        1 Reply Last reply
        0
        • cristian-adamC Offline
          cristian-adamC Offline
          cristian-adam
          wrote on last edited by
          #4

          The only thing I can think of is that there is something wrong with the "symbol path". See https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/symbol-path for more details.

          Otherwise if I debug Qt Creator itself with cdb it doesn't take minutes to set breakpoints or load the application.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            bwilli2020
            wrote on last edited by
            #5

            @olowo726 I have the same issue, did you ever find a solution on this?

            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