Debugger installation and configuration of Qt creator on Windows systems

Source: Internet
Author: User
Tags gdb debugger

After installing QT online, it was discovered that the precompiled version of Visual Studio was used, the debugger was missing (Debugger), and the native debugger that used MSVC's QT counterpart was 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.

Example Environment: XP x86 + Visual Studio + Qt 5.4.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

If the computer system is the XP system, the configuration is 2010VS, then the corresponding download link is http://msdn.microsoft.com/en-us/windows/hardware/ hh852365 WDK is a compressed image file WDK7.1, currently this version is only English version, need to mirror tool or optical drive to install, here I use prog, the installation file is located in the Mirror home directory debugger/setup_for_x86, as shown in:


If it is the other high version of VS, after entering the resource download page, click the corresponding link to get a 1MB online installer, installation, 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. 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.  
Finally share the QT online installation files I have downloaded and the WDK7.1 360 cloud disk network download link Http://yunpan.cn/cyqPsVBvPYbPJ extract code 4b42

Partially transferred from http://www.librehat.com/qt-creator-on-windows-debugger-installation-and-configuration/

Debugger installation and configuration of Qt creator on Windows systems

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.