How to configure CDB in Qt Creator(使用VC调试器)

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

  1. Tools
  2. Options...
  3. Build & Run
  4. Tool Chains
  5. Use the "Clone" button to make a copy of each of the auto-detected MSVC items
  6. In each of the cloned items, you can specify the debugger in the "Debugger" field (e.g. C:\Program Files\Windows Kits\8.0\Debuggers\x64\cdb.exe)
  7. After this everything seems to work...

Colby

{edit}

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

And for x64 builds I run this:

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

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.

http://stackoverflow.com/questions/9975949/how-to-configure-cdb-in-qt-creator

时间: 2024-08-03 13:41:58

How to configure CDB in Qt Creator(使用VC调试器)的相关文章

windows下,Qt Creator 中javascript调试器安装并使用

最开始使用Qt Creator时,想使用断点来调试javascript代码.但在按下debug键后,却提示调试器未配置,让我比较郁闷. 好了,郁闷的是说了,咱们来说说高兴的.要Qt Creator调试的问题,我们需要按照如下步骤,一步步地完成调试器的下载.安装.配置: 1.首先是下载debug工具包,网址:http://www.microsoft.com/en-us/download/details.aspx?id=11800 图一 2.解压并安装GRMWDK_EN_7600_1.ISO中的De

Qt Creator 中关于调试器的设置

Qt Creator3.4.2 Based on Qt 5.5.0 (MSVC 2013, 32 bit) 在安装了VS2013的电脑上能够自动识别VS编译器,却不能识别调试器 需要下载一个wdk,安装里面的debugger 更多信息参考“http://www.librehat.com/qt-creator-on-windows-debugger-installation-and-configuration/”

ubuntu12.04下Qt调试器的使用

最近,我一直在用Qt编写C++程序,但在编写过程中遇到了问题,想用Qt Creator中的调试器调试一下,但调试时(在Qt Creator中已配置好相应的调试器)出现“ ptrace:Operation not permitted ”的错误,如下图所示: 经百度搜索,找到了问题的原因及其解决方案. 原来,在Ubuntu 11.04("Natty Narwhal")之后的版本中,一种叫做 ptrace scope 的安全机制被引入.这种机制防止用户访问当前正在运行的进程的内存和状态,这就

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

如果安装Qt时使用的是Visual Studio的预编译版,那么很有可能就会缺少调试器(Debugger),而使用MSVC的Qt对应的原生调试器是CDB(对应MinGW的Qt使用GDB调试器).本文介绍如何下载安装CDB,并在Qt Creator配置之. 示例环境:Windows 8 x86 + Visual Studio 2012 + Qt 5.2.0 选择合适的Windows Driver Kit(WDK) CDB已经不再作为独立软件包,而是WDK中的一部分.虽然WDK是对应不同的Windo

Windows 系统上Qt Creator的调试器安装与配置

在线安装Qt后发现使用的是Visual Studio的预编译版,缺少调试器(Debugger),而使用MSVC的Qt对应的原生调试器是CDB(对应MinGW的Qt使用GDB调试器).本文介绍如何下载安装CDB,并在Qt Creator配置之. 示例环境:XP x86 + Visual Studio 2010 + Qt 5.4.0 选择合适的Windows Driver Kit(WDK) CDB已经不再作为独立软件包,而是WDK中的一部分.虽然WDK是对应不同的Windows版本的,但是因为我们只

Qt ------ 在 ubuntu 内安装 Qt creator

官网介绍:https://wiki.qt.io/Install_Qt_5_on_Ubuntu Contents [hide] 1Install Qt 5 on Ubuntu 1.1Introduction 1.2Installation Guide 1.3Troubleshooting 1.4References Install Qt 5 on Ubuntu Introduction This is a tutorial for installation of Qt 5.7.0 to Ubunt

Linux上使用Qt Creator进行C/C++开发

Qt Creator支持中文,启动速度比Eclipse.Netbeans更快,界面也更美观,跟输入法Fcitx协作良好(光标跟随). 你既可以把Qt Creator当代码编辑器作为vim辅助,好处在于Qt Creator能够自动parse项目,形成友好快速的智能提示,而且你也同样可以使用Qt Creator里面的gdb前端(上图)和valgrind前端(高清大图) 对项目进行调试和内存分析,不过Makefile就要自己写或者用autotools生成了,这对于使用vim进行编程的同学来说,应该是轻

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

如果安装Qt时使用的是Visual Studio的预编译版,那么很有可能就会缺少调试器(Debugger),而使用MSVC的Qt对应的原生调试器是CDB(对应MinGW的Qt使用GDB调试器).本文介绍如何下载安装CDB,并在Qt Creator配置之. 示例环境:Windows 7 64bit + Visual Studio 2013 + Qt 5.5.0 选择合适的Windows Driver Kit(WDK) CDB已经不再作为独立软件包,而是WDK中的一部分.虽然WDK是对应不同的Win

TestDisk 之Qt creator + MinGW +Qt +gdb

现在采用安装组合为:Qt Creator(2.6.2) + MinGW(在线安装)     + QT(4.8.6) 先安装MinGW,再安装QT,后安装QT Creator:安装好后,构建是不能用的,还要设置哦!我的机子是win7 i3 64位 安装的时候是按照32位来安装的. 1.      QT :: error: 无法打开文件“d:\Qt\2010.05\qt\lib\qtmaind.lib” 我今天就遇到这个问题了.纠结半天,整了半天,终于解决!!! 解决方法:工具-选项-构建和运行-构