Qt Creater 3.5.1 Windows 下调试
2015-12-10 22:03
471 查看
初次使用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
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.
我在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)。
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.
相关文章推荐
- 使用C++实现JNI接口需要注意的事项
- Linux 自检和 SystemTap
- 关于指针的一些事情
- QT学习 第一章:基本对话框
- 使用Shiboken为C++和Qt库创建Python绑定
- Python 七步捉虫法
- c++ primer 第五版 笔记前言
- share_ptr的几个注意点
- 路由器的配置与调试
- 对于技术人员的出现了运行时间错误,是否要进行调试的解决方法
- Lua中调用C++函数示例
- Lua教程(一):在C++中嵌入Lua脚本
- Lua教程(二):C++和Lua相互传递数据示例
- C++联合体转换成C#结构的实现方法
- C++编写简单的打靶游戏
- C++ 自定义控件的移植问题
- C++变位词问题分析
- C/C++数据对齐详细解析
- C++基于栈实现铁轨问题
- C++中引用的使用总结