Use the Debugging Tools for Windows to debug drivers, applications, and services on Windows systems. Debugging Tools for Windows includes WinDbg, a powerful debugger with a graphical interface and a console interface, as well as the console-based debuggers NTSD, CDB, and KD.
Developing for Windows 8 or Windows 7
You can install the Debugging Tools Developer Preview as part of the Windows Driver Kit Developer Preview.
Download Debugging Tools with the Windows Driver Kit Developer Preview
MSDN subscription and sign in required
Release Notes: Debugging Tools for Windows Developer Preview
Developing for Windows Vista or Previous Versions of Windows
You can install the Debugging Tools as a standalone component from the Windows SDK:
Download Debugging Tools from the Windows SDK
The Debugging Tools are listed in two places on the Installation Options screen in the Windows SDK Setup Wizard:
Select the Debugging Tools option under the Common Utilities if you want the x86 version of Debugging Tools and you are installing on an x86 computer. This option automatically detects the CPU architecture of the computer on which you are installing the tools and it is the fastest method of installing the tools.
Select the Debugging Tools option under the Redistributable Packages to download all three versions of Debugging Tools (x86, x64, Itanium).
After you select the appropriate Debugging Tools option as described above, clear the check boxes for the other options so that you do not install unnecessary items. The Common Utilities option downloads the Debugging Tools into a Debugging Tools for Windows folder under your Program Files folder. The Redistributable Packages option downloads the Debugging Tools to C:\Program Files\Microsoft SDKs\Windows\v7.1\Redist\Debugging Tools for Windows.