Interactive Debugging

Post mortem analysis is a necessary skill, but many driver problems are easier to diagnose while the driver is actively running. This section briefly describes how to debug driver code interactively.

Starting and Stopping a Debug Session

WinDbg is the primary tool for interactive debugging. To use it, two machines are needed: the target (machine under test) and the host (development machine running WinDbg). Appendix A describes the basics of making the connection between machines, but essentially a serial link is used to control and monitor activity on the target. Figure 17.3 shows the positioning of the host and target machines and files.

The first secret to successful interactive debugging is to ensure that the necessary ...

Get Windows® 2000 Device Driver Book: A Guide for Programmers, Second Edition, The 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.