Reputation: 29
How to generate kernel dump by using WinDBG?
If I'm using the command, can it generate the Kernel dump?
.dump /f
or I have to use .crash
to get the kernel dump?
Upvotes: 1
Views: 685
Reputation: 59208
Yes, .dump /f
generates a kernel dump when you're in kernel debugging mode. It'll not create a kernel dump when you're debugging in user mode.
.crash
however, will crash the system, i.e. cause a BSOD (blue screen of death), which is not guaranteed to generate a kernel dump, especially not a full memory kernel dump. There are certain conditions for .crash
to work:
A similar effect can be achieved by SysInternals NotMyFault /crash
, but it suffers under the same conditions.
So, the more reliable way is .dump
.
As mentioned by Sean Cline before, you can use SysInternals LiveKD with the -o
and perhaps -m
switch to generate a kernel dump.
There are other options as well, but I never successfully applied them myself, e.g. I never managed to take a kernel dump via Ctrl+Scroll+Scroll.
Upvotes: 4