Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install WinDbg when VS 2015 is already installed?

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)?

like image 734
James Ko Avatar asked May 14 '16 18:05

James Ko


People also ask

How do I install a WinDbg tool?

To download the debugger tools for previous versions of Windows, you need to download the Windows SDK for the version you are debugging from the Windows SDK and emulator archive. In the installation wizard of the SDK, select Debugging Tools for Windows, and deselect all other components.

Where is WinDbg EXE installed?

C:\Program Files (x86)\Windows Kits\10\Debuggers\x86.

How do I download from WinDbg preview?

The WinDbg Preview debugger is available in the Microsoft Store. It requires Windows 10 Anniversary Update to install. To install it, open the Microsoft Store and search for "WinDbg Preview", or use the following link to navigate directly to WinDbg Preview. Once the app is a located, select it to download and install.


1 Answers

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

like image 113
Cody Gray Avatar answered Oct 16 '22 15:10

Cody Gray