Debugging with CDB incredibly slow
-
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?
-
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"?
-
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.
-
@olowo726 I have the same issue, did you ever find a solution on this?