B.2 The Windows Debugger (WinDbg)

The following tables list some useful debugger commands of WinDbg. For a complete list of available commands, see Mario Hewardt and Daniel Pravat’s Advanced Windows Debugging (Addison-Wesley Professional, 2007) or the documentation that comes with WinDbg.

Starting and Stopping a Debugging Session

Command

Description

FileOpen Executable...

Click Open Executable on the File menu to start a new user-mode process and debug it.

FileAttach to a Process...

Click Attach to a Process on the File menu to debug a user-mode application that is currently running.

q

Ends the debugging session.

General Commands

Command

Description

g

Begins or resumes execution on the target.

Breakpoints

Command

Description

bp address

Sets a new breakpoint ...

Get A Bug Hunter's Diary 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.