如何使用 Visual Studio 2017 安装程序安装调试工具? [英] How to install Debugging Tools with Visual Studio 2017 installer?

查看:49
本文介绍了如何使用 Visual Studio 2017 安装程序安装调试工具?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要 cdb.exe 作为 QT Creator 的调试器.我知道 cdb 可作为 Windows SDK 的一部分使用,但在我通过 Visual Studio 2017 安装程序安装 Windows SDK 时并未安装.

另一方面,如果我独立安装 Windows SDK(可用 (忽略箭头.图片来源:https://www.raymond.cc/blog/analyze-windows-7-performance-with-microsoft-windows-performance-toolkit/)

I need cdb.exe as a debugger for QT Creator. I know that cdb is available as a part of Windows SDK, but is not installed when I install Windows SDK through Visual Studio 2017 installer.

On the other hand, if I install Windows SDK standalone (available here), I can select "Debugging Tools", and finally I get the expected folder Debuggers in Windows kits, that contains cdb.

How can I get cdb during Visual Studio install?

解决方案

You can't.

When the Visual Studio installer (2017, 2015, or any other one) gives you the checkbox for "Windows SDK 10.xxxxx" it really means "only the headers (.h), libraries (.lib), metadata (.winmd), etc. from the Windows SDK 10.xxxxx".

It does not include any of the options you see in the Windows SDK installer other than "Windows Software Development Kit". Neither WinDbg and the Debugging Tools for Windows, nor xperf and the Windows Performance Toolkit, nor Application Verifier, nor any of the other things you see int the SDK installer are included by selecting that checkbox in the VS installer.

The term "Windows SDK" is overloaded with two meanings which are related but not the same. sdksetup.exe can install Windows SDK1, while the VS installer installs Windows SDK2 (which is a subset of Windows SDK1).

(Ignore the arrow. Image source: https://www.raymond.cc/blog/analyze-windows-7-performance-with-microsoft-windows-performance-toolkit/)

这篇关于如何使用 Visual Studio 2017 安装程序安装调试工具?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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