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 8 x86 + Visual Studio + Qt 5.2.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.
WDK 7.1 corresponds to VS2010,WDK 8.0 corresponding to VS2012,WDK 8.1 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.0
Download wdk:http://msdn.microsoft.com/en-us/windows/hardware/hh852365 from Microsoft
Get a less than 1MB of online installer, when installed, only need to select debugging Tools for Windows, others can not install, 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. Confirm the following as shown:
However, the first time you debug, you may still be prompted to set the symbol server, generally directly confirm it.
Qt Creator Debugger Installation and configuration on Windows