Qt creator debug slow

I am running Qt Creator 2.3.0 based on Qt 4.7.4 on a 64-bit version of Windows 7. When I run the application from Qt Creator (ctrl + r), everything works fine. However, when I debug (F5), each line is executed forever - as sometimes after 2 minutes to execute one line of code.

In the debugger log window, I noticed this line: Debugger: C: \ Program Files (x86) \ Debugging Tools for Windows (x86) \ cdb.exe. I thought, since I am running Windows 7 x64, I have to use a 64-bit debugger. Thus, I downloaded and installed the Microsoft Windows SDK for Windows 7 and the .NET Framework 3.5 SP1, as suggested to each other.

Now I see that in Tools..Options..Tool Chains I have a number of automatic detected tools. If I select any of the Microsoft Windows SDKs for Windows - x86, x64, ia64 or any of the Microsoft Visual C ++ Compiler 9.0 - x86, amd64, x64, ia64 - the debugger is set to "C: \ Program Files (x86) \ Debugging for Windows (x86) \ cdb.exe "and is disabled, so I can’t change it.

How to convince Qt Creator to use the 64-bit version of cdb? Is this due to my main problem - super-slow debugging?

+6
source share
3 answers

After installing the Microsoft Windows SDK for Windows 7 and the .NET Framework 3.5 Service Pack 1, I upgraded to Qt Creator 2.4. Now that I am debugging, he started using x64 cdb! For some reason, the first couple of times were still very slow. However, when I tried to do this, it now runs at a reasonable speed. Even after restarting Qt Creator or even rebooting, debugging now works at a reasonable speed: maybe 2-3 seconds to open my main form for the first time and after 1 second. Used to go from minute to 20 minutes.

So it works now! Hope this helps someone.

+1
source

I am using qt-creator 2.5.2, lib 4.8.3 msvc2010, under windows7-64bit, also too slow
even after I loaded the debug symbols as a cache.

but he decided now: How to configure CDB in Qt Creator?

I clone one configuration by changing it by default: C: \ Program Files \ Debugging Tools for Windows (x64) \ cdb.exe

for a new installation: C: \ Program Files (x86) \ Windows Kits \ 8.0 \ Debuggers \ x86 \ cdb.exe

+1
source

If other users still encounter a problem even after the settings characters are cached, restart QT Creator or reboot the system, consider downloading debugging tools from other versions of the Windows SDK. This worked for me as shown in the answer.

0
source

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


All Articles