Appendix A. WinDbg User-Mode Debugging Quick Start

This appendix provides a basic overview of the most common user-mode debugging tasks and how to accomplish them using the WinDbg debugger. Note that this isn’t meant to be an exhaustive list of debugger commands, but rather a task-centric summary you can use as a reference for jump-starting your user-mode debugging investigations.

Starting a User-Mode Debugging Session

To start a user-mode process directly under the WinDbg debugger, you can provide its path as a parameter on the command line, as shown in the following listing, which starts a new instance of the notepad.exe text editor under windbg.exe.

windbg.exe notepad.exe ... 0:000> $ Display the command line of the windbg.exe debugging session ...

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.