Chapter 4. Postmortem Debugging

In this chapter

Just-in-Time Debugging
Dump Debugging
Summary

Software crashes are, sadly, all too common and often occur under unpredictable conditions that make them hard to reproduce, so it would be unfortunate if such crashes left no trace. Fortunately, the Microsoft Windows operating system (OS) has support for automatically capturing partial or full-memory snapshots in response to a crash and saving them to disk for later analysis. These memory dump files can then be investigated using debuggers in a passive debugging mode called postmortem debugging. Both the Windows debuggers and the Microsoft Visual Studio debugger support this form of analysis, although the Windows debuggers are in many ways superior in this ...

Get Inside Windows® Debugging 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.