Videos: Debugging KMDF Drivers
This topic contains links to a three part video series by Kumar Rajeev that demonstrates how to debug Kernel-Mode Driver Framework (KMDF) drivers.
After watching the videos, you'll be familiar with the KMDF debugger extensions and know how to use them in basic debugging scenarios.
This series of demonstrations is given at an advanced technical level. To get the most from this content you should have working knowledge of the Windows kernel debugger (windbg.exe) and should be familiar with creating and using code with KMDF. Because each session builds on the previous one, we recommend that you view these demonstrations in the order listed.
Video Series: Debugging Kernel-Mode Driver Framework Drivers
Session 1: Dumping the KMDF Log (10 minutes) [media file]
The KMDF log is an important feature that helps quickly identify the root cause of a problem. This session shows you how to dump the KMDF log in the kernel debugger. It also provides information on how to change the size and verbosity of the log, and gives some tips on scanning the log.
The KMDF provides several debugger commands that help you explore various types of information about a driver. This session shows how to dump all the framework objects created by a KMDF driver, including parent-child hierarchy, verifier state, and device hierarchy. These commands are usually the starting point for a deeper investigation.
Session 3: Dumping Device and Queues (15 minutes) [media file]
This session shows you how to get detailed information about a KMDF device object including plug and play (PnP) and power state, power policy ownership, power configuration, PnP and power callbacks, and device properties. It also shows you how to get information on open handles, explore all the I/O queues configured for the device, and dump individual requests.