How to install WinDbg when VS 2015 is already installed?
Asked Answered
T

1

22

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

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

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

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

Theatrics answered 14/5, 2016 at 18:30 Comment(2)
Well, that's pretty annoying. It probably sees that the SDK version you got with Update 2 is newer. Punt the problem and install it on another machine so you can just copy the files.Thaler
Go to the Programs and Features control panel, right-click on Windows Software Development Kit and select Change. You should then be able to add the Debugging Tools option. (But it may already be installed; I'm not sure that it is on the Developer Command Prompt path by default. Look in the Debuggers folder inside the SDK.)Kila
G
53

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.

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.

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.

After installing Visual Studio 2015, you already have the Windows 10 SDK. You do not need to download it separately. To get the additional tools on Windows 10:

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

  2. 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.)

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

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

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

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

(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.)

Gaylegayleen answered 31/7, 2016 at 15:9 Comment(2)
another way of fixing the issue was to re-run VS setup and select WDK 10 thereLucius
+1. Worked for me for Visual Studio 2017 when attempting to add Debugging Tools for Windows to Qt Creator.Fletafletch

© 2022 - 2024 — McMap. All rights reserved.