On the windows platform, when Qt uses the CDB debugger tool to debug the program, there is often a debugging card for half a day. There are two reasons for this problem:
Reason 1: The program has enabled the incremental connection function;
Reason 2: Qt is in the background Download the *.pdb file for program debugging from the Microsoft Symbol server ; the
solution is as follows:
1. In the *.pro project file, disable incremental connection and add the following statement:
QMAKE_LFLAGS_DEBUG += /INCREMENTAL:NO
2. Download all the *.pdb files required by the program at one time, and then directly access the local Symbol file without downloading in the background;
open Qt, click [Tools] –> Options –> Debugger – on the Qt toolbar > CDB Paths --> In Symbol Paths, fill in the following:
cache*D:\CDBsymbolcache
srv*http://msdl.microsoft.com/download/symbols
3. Remove the following "srv*http://msdl.microsoft.com/download/symbols" statement and no longer download in the background, as follows:
The main reason is the second reason, the CDB debugging speed is imaged. It is recommended to remove the server address after the Symbol is downloaded.
Appendix:
Win7 platform CDB debugger address
Win10 platform CDB debugger address
Win7/XP winDbg 32-bit
Win7/XP winDbg 64-bit
Win10 winDbg
Win10 SDK
Download Win10 SDK, select "Debugging Tools for Windows" in the installation list to install Win10 Version of winDbg;