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

来源:互联网 发布:算法设计与分析答案 编辑:程序博客网 时间:2024/05/16 18:28

1.问题描述

开发环境:Qt5.4.2+win7(32/64bit)

Qtcreator开发程序无法调试。

调试出现提示错误“调试器未配置",

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了

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

3.2 安装

运行下载得到的在线安装程序sdksetup.exe安装。

PS: 安装的过程中选择将安装包保存到本地进行离线安装. 安装包下载完成后 找到含debugger关键词的后缀为.msi的文件点击安装即可.

PS: 只需要选中Debugging Tools for Windows即可,其它都可以不安装。

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

3.3 配置Qt Creator

重新启动Qt Creator,在工具/选项/构建和运行里面,Debuggers窗口 已经自动检测到两个CDB 。 
然后在构建和套件(kits)窗口,将套件桌面的调试器修改为x86(32位)/x64(64位)的cdb
 qtcreator可以正常进行调试工作了。

参考文献

[1] Qt Creator在Windows上的调试器安装与配置. http://blog.163.com/qimo601@126/blog/static/1582209320162102559368/. 访问日期:2017-1-3

[2] qt creator 调试器未设置. http://blog.csdn.net/chinabinlang/article/details/18360813. 访问日期:2017-1-4

0 0
原创粉丝点击