Qt creator debug mode is very slow

Similar questions here and here

In my case, I use Qt 5.5 with Qt creator 3.5 on a Windows 10 computer. It takes about 10-15 seconds to start debugging my project. My project uses quick control. I'm not sure if this is related.

In my Qt creator, I cannot find the CDB debugger. Searching for "cdb.exe" in my root drive gives nothing.

My current kit

  • Debugger: GNU gdb 7.8 for MinGW 4.9.2 32bit
  • Compiler: MinGW 4.9.2 32bit
  • Qt version: Qt 5.5.1 MinGW 32bit

Edit: Processor: Core i7 3.3 GHz Ram: 32 GB SSD

Is there a workaround or do I need to install a CDB and configure it in a Qt creator?

+4
source share
4 answers

CDB is part of the Windows SDK. You can get the Windows SDK 8.1 or the Windows SDK 10 for your system. Then follow the Qt documentation: Configuring the Debugger .

+1
source

When upgrading to Qt 5.6.1 on Windows 10 (Redstone) with Visual Studio Professional 2015 (update 3), I also encountered epic slowness with cdb.exe. The process (cdb.exe) just hung Qt Creator for 30 seconds after the build was complete and before debugging began.

If others are faced with such slowness and do not have time to cache characters, I would like to share this by downloading the Windows 8.1 SDK , installing only the debugging tools and reopening Qt Creator, I was able to upgrade the kit to debug autodiscover 8.1 (cdb.exe), and that’s all started to work correctly again.

+4
source

I had very slow debugging with Windows 10 Professional, Qt 5.5.1 and Qt Creator 3.5.1 using CDB. It was pretty unusable. I found that window debugging symbols take a very long time to load. When I go straight to the Windows Symbol Server, it takes a few minutes. So, I downloaded the window symbols from here: Windows Symbol Packages

I set the characters and then set the path to the CDB character in Qt Creator. It's very fast.

+3
source

I had a terribly slow compilation process from out of the box Qt 5.7 with Windows 10.

I found that (compilation time is divided by 10) by replacing the MinGW tooltip on Windows one

In Qt Creator, in Tools / Options / Build and Run, you need to make sure that all three tabs of Qt Versions, Compilers and Debuggers are configured

For versions of Qt, MSVC2015 is required, which you can get using MaintenanceTools.exe in the root of your Qt installation (default is C: \ Qt)

The compiler needs MSVC C ++ 14.0, which I think you will get with Visual Studio 2015 (it was already for me)

Debugger needs the CDB you get with Windows Kit 10

I installed everything, I definitely added a new kit to my project (MSVC2015 desktop) and poof! The compilation time has passed.

0
source

Source: https://habr.com/ru/post/907323/


All Articles