I’m debugging a kernel-mode device driver for Windows, using WinDbg.
Is it possible to create a minidump on-demand?
I mean, one of my breakpoints is hit, the system is stopped. I want to create a minidump (let’s say stack only). Is there a WinDbg keyword for this?
Thanks in advance
You can write a minidump like so when it hits your breakpoint:
This will add a breakpoint to your function and execute the commands in the quotation marks, this will write a minidump with most flags and then continue.
See here for more info on
.dumpand here onbpsyntax.To dump the complete memory in user or kernel mode:
but
/maswitch actually puts more information in for user-mode.If you get the error:
try writing the file to the c:\users\public\ directory.