Chapter 22. How to Debug WDF Drivers

Debugging is an essential part of the development process. Programs under development always have bugs, especially in the early stages. Debuggers can also function as a learning tool, to examine drivers in operation and understand in detail how they work. This chapter is an introduction to debugging WDF drivers.

This chapter introduces the tools used to debug drivers, especially the most commonly used debugger—WinDbg. The chapter describes how to prepare systems for debugging UMDF and KMDF drivers and provides detailed walkthroughs of simple debugging sessions with a UMDF and a KMDF driver.

In this chapter:

About WDF Debugging Tools 697

WinDbg Basics 699

How to Prepare for UMDF Debugging 706

How to Prepare for KMDF ...

Get Developing Drivers with the Windows® Driver Foundation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.