If you are using the precompiled version of Visual Studio when you install QT, there is a good chance that the debugger (Debugger) will be missing, whereas the native debugger for QT corresponding to the MSVC is CDB (which corresponds to MinGW's QT using the GDB debugger). This article describes how to download and install CDB and configure it in Qt Creator.
Sample environment: Windows 7 64bit + Visual Studio + Qt 5.5.0
Select the appropriate Windows Driver Kit (WDK)
CDB is no longer a standalone package, but a part of the WDK. Although the WDK corresponds to a different version of Windows, because we only need CDB, instead of developing a driver, basically ignore the requirements of the operating system, just focus on the corresponding version of Visual Studio.
- The WDK 7.1 corresponds to the VS2010
- WDK 8.0 corresponds to VS2012
- WDK 8.1 corresponds to VS2013
WDK 8.0, WDK 8.1 supports Windows 7, Windows Server R2, WINDOWS8, Windows 8.1, Windows Server 2012, and this article chooses the WDK 8.1
Download WDK from Microsoft
Get a less than 1MB of online installer, when installed, only need to select debugging Tools for Windows, the other can not be installed, as shown in:
Close the Setup program after the installation is complete.
Configuring QT Creator
Restart Qt Creator, in the settings, Build & Run Kits tab, you can see kits inside the yellow exclamation point before the triangle is not, and debugger is automatically recognized.
In the debugger panel, on the CDB Path tab, click the small triangle behind insert to select symbol Server, and the pop-up window fills in the cache folder where symbol is stored. After confirmation, as
However, the first time you debug, you may still be prompted to set the symbol server, generally directly confirm it.
http://daodaoliang.com/blog/2015/07/30/Qt%E5%9C%A8Windows%E4%B8%8A%E7%9A%84%E8%B0%83%E8%AF%95%E5%99%A8%E5%AE% 89%e8%a3%85%e4%b8%8e%e9%85%8d%e7%bd%ae.html
The debugger installation and configuration of QT on Windows