Setting Up User-Mode Debugging in Visual Studio
There are two user-mode debuggers available in the Microsoft Visual Studio environment. One is the Windows User-Mode Debugger, which is included in Debugging Tools for Windows. The other is the Visual Studio Debugger, which is part of the Visual Studio product. This topic describes how to get set up to use the Windows User-Mode Debugger from within the Visual Studio environment.
No special setup is required for debugging a user-mode process on the local computer. For information about attaching to a process or launching a process under the debugger, see Debugging a User-Mode Process Using Visual Studio.
In some cases, two computers are used for debugging. The debugger runs on the host computer, and the code that is being debugged runs on the target computer. In Visual Studio (running on the host computer), you can use the Windows User-Mode Debugger to attach to a user-mode process on a target computer.
On the target computer, go to Control Panel>Network and Internet>Network and Sharing Center>Advanced sharing settings. Under Guest or Public, select Turn on network discovery and Turn on file and printer sharing.
You can do the rest of the configuration from the host computer:
- On the host computer, in Visual Studio, on the Tools menu, choose Attach to Process.
- For Transport, choose Windows User Mode Debugger.
- To the right of the Qualifier box, click the Browse button.
- Click the Add button.
- Enter the name of the target computer.
- To the right of Configure Target Computer, click the Configure button. The Configure Target Computer dialog box opens and displays the configuration progress.
- When the configuration is complete, in the Configure Computers dialog box, click OK.