Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Qt creator debug mode is really slow

Similar questions are here and here

My case is I'm using Qt 5.5 with Qt creator 3.5 on a Windows 10 machine. It takes about 10 to 15 seconds to start debugging my project. My project uses quick control. I'm not sure if that is related.

In my Qt creator I can't find CDB debugger. Searching "cdb.exe" in my root disk results in nothing.

My current kit is

  • 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: CPU: Core i7 3.3GHz Ram: 32GB SSD

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

like image 720
Jerry Avatar asked Jan 22 '16 22:01

Jerry


1 Answers

When updating to Qt 5.6.1 in a Windows 10 (Redstone) with Visual Studio Professional 2015 (Update 3), I also faced an epic slowness with cdb.exe. The process (cdb.exe) would just hang Qt Creator for 30+ seconds after the build ended and before the debugging started.

If others face such slowness, and had no luck caching the symbols, I would like to share that by downloading the Windows 8.1 SDK, installing only the Debugging Tools and re-opening Qt Creator, I was able to update the kit to the auto-detect 8.1 debugger (cdb.exe) and everything started working properly again.

like image 85
diogoslima Avatar answered Oct 12 '22 23:10

diogoslima