Qt Creater 3.5.1 Windows 下调试
来源:互联网 发布:双枪入洞什么感觉知乎 编辑:程序博客网 时间:2024/05/18 02:05
初次使用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:
- Select Tools > Options > Debugger > CDB.
- In the Symbol paths field, open the Insert menu and select Symbol Server.
- 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.
- Qt Creater 3.5.1 Windows 下调试
- Qt Creater 3.5.1 Windows 下调试
- windows下修改Qt creater中的默认编码
- QT Creater 安装与调试
- QT Creater
- QT Creater
- Qt下.pro文件关联到Qt Creater上
- QT Creater/VS2013的使用(快捷键,调试等)
- QT creater之主界面下的界面切换
- qt creater gtk 入门
- qt creater 默认快捷键
- qt creater的使用
- QT Creater学习摘要
- Qt Creater编译VTK
- Windows下配置Qt调试环境
- Windows下 Qt断点调试,查看变量
- windows下Qt Creator 调试器配置
- Qt creater系列教程学习笔记——1
- 每天学点Python之strings
- Linux下配置apache与Tomcat连接
- 如何定义 Java 中的方法
- Android项目的目录结构
- [Coursera]数据结构基础_Week3_栈与队列_Q1
- Qt Creater 3.5.1 Windows 下调试
- async 函数的含义和用法
- 去除url中重复的参数
- iOS开发实用技术之音频开发
- 大数据学习里程--第1米
- Android Matrix
- W3C
- KMP算法
- iOS 解决tableview分割线右缩进15像素问题