已安装 VS 2015 后如何安装 WinDbg? [英] How to install WinDbg when VS 2015 is already installed?

查看:34
本文介绍了已安装 VS 2015 后如何安装 WinDbg?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从 此页面安装 WinDbg,只是在 Windows 10 调试工具 (WinDbg) 部分下.但是,当我下载可执行文件并运行它时,它告诉我

I'm trying to install WinDbg from this page, just under the Debugging Tools for Windows 10 (WinDbg) section. However, when I download the executable and run it, it tells me that

您必须先卸载 Windows 软件开发工具包 - Windows 10.0.10586.15,然后才能安装最新版本的工具包.

You must uninstall the Windows Software Development Kit - Windows 10.0.10586.15 before you can install the latest version of the kit.

我猜这可能与我已经安装了 VS 2015(和 Windows 10 SDK)有关.但是,当我转到开发人员命令提示符并输入

I'm guessing this probably has to do with the fact that I already have VS 2015 (and the Windows 10 SDK) installed. However, when I go to the Developer Command Prompt and type in

> where windbg

它告诉我它找不到 WinDbg.那么,如何在不做任何激烈操作(例如重新安装 Visual Studio)的情况下安装它?

it tells me that it can't find WinDbg. How, then, do I install it without doing anything drastic (like reinstalling Visual Studio)?

推荐答案

在使用 Windows 10 和 Visual Studio 2015 设置 VM 时,我刚刚遇到了同样的问题(使用稍微更新的 SDK 版本).遵循一般规则(或者至少,使用是一般规则),我在尝试安装 SDK 之前先安装了 Visual Studio.

I just ran into this same problem (with a slightly newer version of the SDK) when setting up a VM with Windows 10 and Visual Studio 2015. Following the general rule (or at least, what used to be the general rule), I installed Visual Studio first before attempting to install the SDK.

即使我选择了 Visual Studio 安装中的所有选项,而且我似乎已经获得了大部分 SDK,但我没有获得我想要的调试工具或应用程序验证程序.调试器"文件夹是空的.然而,当我尝试下载并安装独立的 Windows 10 SDK,我收到您引用的错误消息,我需要先卸载 SDK,然后才能安装最新版本.

Even though I picked all the options in the Visual Studio install, and I appear to have gotten large portions of the SDK, I didn't get the debugging tools or the application verifier, which I wanted. The "Debuggers" folder was empty. Yet when I tried to download and install the standalone Windows 10 SDK, I got the error message you quote, that I needed to uninstall the SDK before I can install the latest version.

微软的网站完全没有帮助.它没有提供有关安装软件的适当方法的线索.Harry Johnston 的评论让我开始了朝着正确的方向.

Microsoft's site is absolutely no help. It gives no clues about the appropriate way to install the software. Harry Johnston's comment got me going in the right direction.

安装 Visual Studio 2015 后,您已经拥有 Windows 10 SDK.您无需单独下载.要在 Windows 10 上获取其他工具:

  1. 打开设置 → 系统 →应用和功能".

  1. Open Settings → System → "Apps and features".

向下滚动到Windows 软件开发工具包".

Scroll down to "Windows Software Development Kit".

(我安装了它的两个版本.最上面的一个是新版本.我建议您在以下步骤中继续使用新版本.)

(I had two versions of it installed. The top one was newer. I'd recommend that you proceed with the newer version for the following steps.)

选择它,然后单击修改".然后,因为它是 Windows 10 并且一切都比它需要的更难,单击修改"按钮.再次.

Select it, and click "Modify". Then, because it's Windows 10 and everything is harder than it needs to be, click "Modify" again.

安装程序将启动.选择更改"选项,然后单击下一步".

The installer will launch. Select the "Change" option, and click "Next".

在您想要的附加功能/工具旁边打勾,点击更改";开始这个过程.

Place a check next to the additional features/tools you want, click "Change" to start the process.

等待一段时间后,它将下载并安装 SDK 的其他部分.你现在应该可以开始了!

After waiting some time, it will have downloaded and installed the additional portions of the SDK. You should now be good to go!

(这对我来说似乎是一个错误.SDK 的两个版本(我安装的一个版本和我下载的安装程序版本)是相同的(两个版本都是 10.0.10586.212),所以运行独立的安装程序应该只启动您可以从设置"启动的相同设置工具,使我能够更改/删除功能.哦,至少这是有效的.)

(This does seem like a bug in my case. The two versions of the SDK (the one I have installed and the one whose installer I downloaded) are identical (both are for version 10.0.10586.212), so running the standalone installer should just launch the same setup tool that you are able to launch from Settings, enabling me to Change/Remove Features. Oh well, at least this works.)

这篇关于已安装 VS 2015 后如何安装 WinDbg?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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