Qt Creator在Windows上的调试器安装与配置

1、问题描述:

开发环境:Qt5.5.1+VS2013+win7(64bit)

VS开发qt程序编译正常Qtcreator开发程序,后无法调试。

调试出现提示错误“Unknown debugger type "No engine",如下图所示

Qt Creator在Windows上的调试器安装与配置
2、原因:
       qt官方提示,如果qtcreator自动检测调试器失败,就需要你手动安装window CDB debugger.
You need to set up the debugger only if the automatic setup fails, because the native debugger is missing (as is usually the case for the CDB debugger on Windows, which you always must install yourself) or because the installed version is not supported (for example, when your system contains no, or an outdated version of GDB and you want to use a locally installed replacement instead).

3、解决方法:
3.1 下载Windows SDK,
         选择安装其中的Debugging Tools for Windows,完成CDB Debugger的安装即可。

我是从这个中文版地址下载的:https://dev.windows.com/zh-cn/downloads/windows-8-1-sdk

该版本支持win7,官方很多地方都是支持win10了

Qt Creator在Windows上的调试器安装与配置

 

或者从微软英文官方下载WDK:http://msdn.microsoft.com/en-us/windows/hardware/hh852365

Qt Creator在Windows上的调试器安装与配置
 

 

3.2 安装

 将下载得到的在线安装程序sdksetup.exe安装,只需要选中Debugging Tools for Windows即可,其它都可以不安装,如下图所示。


Qt Creator在Windows上的调试器安装与配置

 Qt Creator在Windows上的调试器安装与配置

 

安装完成后Close关闭安装程序。


3.3配置Qt Creator

重新启动Qt Creator,在工具/选项/构建和运行里面,Debuggers窗口 已经自动检测到两个CDB 。

Qt Creator在Windows上的调试器安装与配置

 

然后在构建和套件(kits)窗口,将套件桌面的调试器修改为x64的cdb

Qt Creator在Windows上的调试器安装与配置
 

 qtcreator可以正常进行调试工作了。

Qt Creator在Windows上的调试器安装与配置