如何配置CDB Qt Creator中? [英] How to configure CDB in Qt Creator?

查看:463
本文介绍了如何配置CDB Qt Creator中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这里的问题 是我的一样但没有为我工作的解决方案。我在Windows 7上使用QtCreator 2.4.1当我尝试调试一个简单的Hello World的应用中显示的信息是:用于调试类型'x86的Windows的msvc2010-PE-32位的二进制文件的preferred调试器引擎不可....详细信息:没有可用于格式的二进制文件'x86的Windows的msvc2010-PE-32位

The question here is the same as mine but the solution there is not working for me. I am using QtCreator 2.4.1 on Windows 7. When i try to debug a simple hello world app the message displayed is: "The preferred debugger engine for debugging binaries of type 'x86-windows-msvc2010-pe-32bit' is not available....Details: There is no CDB binary available for binaries in format 'x86-windows-msvc2010-pe-32bit"

当我发现的Cdb.exe是不是我的系统上我已经安装调试与工具的Windows SDK和的Cdb.exe当前位置是C:\\ Program Files文件(x86)的\\的Windows套件\\ 8.0 \\调试\\ X86 \\的Cdb.exe和C:\\ Program Files文件(x86)的\\的Windows套件\\ 8.0 \\调试\\ 64 \\的Cdb.exe

When i found that cdb.exe was not on my system i had Windows SDK installed with debugger tools and the current location of cdb.exe is "C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x86\cdb.exe" and "C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\cdb.exe",

在CDB标签我配置符号服务器以及的Cdb.exe的路径,但不成功!

In the CDB tab i configured symbol server as well as the path of CDB.exe, but in vain!

QtCreator->工具 - >选项 - > Debugger-> CDB标签 - >具有以下字段:结果
额外的参数结果
使用CDB控制台结果
符号路径结果
源路径结果
正确的断点位置等等...

QtCreator->Tools->options->Debugger->CDB Tab->has the following fields:
Additional arguments
use CDB console
Symbol Paths
Source Paths
Correct breakpoint location etc...

有人可以详细解释好心这是什么意思在这里是预期的值。有没有人成功调试使用Qt Creator的任何应用程序了。

Can somebody kindly explain in detail what these mean and what values are expected here. Has anybody successfully debugged any applicaiton using Qt Creator.

请参考以下链接:结果
<一href=\"http://qt-project.org/forums/viewthread/16018/\">http://qt-project.org/forums/viewthread/16018/

推荐答案

我有同样的问题也终于想通了,如何解决这个问题。 Styne666给了我一个提示。做到以下几点:

I was having the same problems too, and finally figured out how to solve this. Styne666 gave me a hint. Do the following:


  1. 工具

  2. 选项...

  3. 构建和放大器;运行

  4. 工具链

  5. 使用克隆按钮,使每个自动检测到的MSVC项目的副本

  6. 在每一个克隆的物品,你可以在调试字段中指定的调试器(例如C:\\ Program Files文件\\的Windows套件\\ 8.0 \\调试\\ 64 \\的Cdb.exe)

  7. 这一切之后,似乎工作...

科尔比

{编辑}

我要进一步提到,如果你正在运行Windows 64位版本和Qt Creator的32位版本像我,你需要确保你指向国开行的32位版本(其中有x86和x64的目标的版本)。因此,对于32位目标构建我运行此:

I should further mention that if you are running a 64-bit version of Windows and a 32-bit version of Qt Creator like I am, you need to make sure that you are pointing to the 32-bit versions of cdb (of which there are x86 and x64 target versions). So for the 32-bit target builds I run this:

C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x86\cdb.exe

和用于基于x64的建立运行此:

And for x64 builds I run this:

C:\Program Files (x86)\Windows Kits\8.0\Debuggers\x64\cdb.exe

棘手的部分是,它是有点难以得到微软的64位计算机上安装调试工具的32位版本。一位同事试图这样做最近说,他需要为了有做到这一点的选项来安装Windows 8的工具 - Windows 7的版本也不会放过你的。

The tricky part is that it is somewhat difficult to get Microsoft to install the 32-bit version of the debugging tools on your 64-bit machine. A co-worker tried to do so recently and said that he needed to install the Windows 8 tools in order to have the option to do that - the Windows 7 versions would not let you.

这篇关于如何配置CDB Qt Creator中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆