General Microsoft Visual Studio debugging tips

After you install your driver, you can create a debugging project in Microsoft Visual Studio 2012 by following these steps:

  1. Open Visual Studio 2012 and select File > New > Project from Existing Code.
  2. Follow the steps in the Welcome to the Create Project from Existing Code Files Wizard. Specify the language, the location of your driver source files, a project name, and so on.
  3. Open your newly created project.
  4. Select Debug/Attach to Process. In the list of available processes that appears in the Attach to Process dialog box, select WudfHost.exe.

After you complete these steps, you can set breakpoints in your driver’s source code and debug your driver.

Related topics

The Sensor Diagnostic Tool
The Sensors HID Driver Sample
Writing a Sensor Device Driver



Send comments about this topic to Microsoft

Build date: 11/29/2012