Debugging a Driver
Typically, debugging a kernel-mode driver requires two computers. The debugger runs on the host computer, and the code being debugged runs on the target computer. The target computer is also called the test computer. You can debug a user-mode driver on the host computer or on a separate target computer. Before you can debug a driver running on a target computer, you must configure the target computer for debugging.
For information about using Microsoft Visual Studio to debug a driver, see Debugging Using Visual Studio.
For an example of using Visual Studio to debug a kernel-mode driver, see Writing a KMDF driver based on a template.
For an introduction to Debugging Tools for Windows, see Windows Debugging.
This video demonstrates how to use the WinDbg debugging engine directly in Visual Studio instead of running WinDbg separately.