Qt Creater 3.5.1 Windows 下调试

本文详细介绍了在Windows XP和Windows 7环境下使用Qt Creator 3.5.1遇到的调试器配置问题,包括使用CDB调试器、下载Windows Driver Kit、安装Debugging Tools for Windows、配置Qt Creator及设置符号服务器等步骤。通过遵循指南,读者能够解决Qt Creator中未知调试类型及无法创建调试器引擎的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

初次使用Qt 开发,感觉IDE做的很好。轻便而快速。

我在WINDOWS XP 与 WIN7 下使用 Qt Creater 3.5.1 。

XP 下是 用Qt 5.5  , WIN7 是用 Qt 4.8 (这个是前期安装没有卸载)


代码编写一起正常。

在DEBUG调试时发现与 VS2010差距 挺大的,需要指定调试器。

看来VS真是帮我们惯坏了,什么都不用操心。


调试时,提示Unknow debugger type  "NO engine”, Unable to create a debugger engine of the type " No engine"

根本原因:Qt Creater,没有指定好 调试器。


解决办法:

可以参考Qt官网

http://doc.qt.io/qtcreator/creator-debugger-engines.html。

其实有了这个网址就够了。


1.下载 WINDOWS CDB   ( Microsoft Visual C++ Compiler )

CDB 在 WIDK(Windows Driver Kit)包中,所以这个包要一起下。


下载地址:https://msdn.microsoft.com/en-us/windows/hardware/hh852365

根据自己的系统选择合适的包。

XP 与 WIN7 选  WDK 7.1.0 (for Windows XP drivers)。




2. 安装 WDK ,只选择其中的  Debugging Tools for Windows



3. 配置 Qt Creater 5.5.1 ,

Tool -> Options -> Builds & Run -> Debuggers 选刚装 WDK中的 CDB.




4. Setting the Symbol Server in Windows

(照搬Qt 网站的内容了)

To obtain debugging information for the operating system libraries for debugging Windows applications, add the Symbol Server provided by Microsoft to the symbol search path of the debugger:

  1. Select Tools > Options > Debugger > CDB.
  2. In the Symbol paths field, open the Insert menu and select Symbol Server.
  3. Select a directory where you want to store the cached information and click OK.

    Use a subfolder in a temporary directory, such as C:\temp\symbolcache.

Note: Populating the cache might take a long time on a slow network connection.

Note: The first time you start debugging by using the Debugging tools for Windows, Qt Creator prompts you to add the Symbol Server.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值