Most of us have Windbg set up as the default program for dump files - Register Windbg for dump files (File Associations)
Did you know that you can also add kd commands to run by default as well?
Simply setting up Windbg as the default program leaves Windbg at this point after double-clicking on a dump file -- waiting for you to enter additional commands at the kd> line such as !analyze -v -
I changed my default set up to include these commands -
So, when I double-click on a dump file, all of the basic commands that I like to run do so without me having to enter them at the kd> command line.
Try it out!
Back up your registry first (I opted to create a system restore point).
Maneuver to this registry key and add your default Windbg commands -
The (Default) should look something like this (by default):
I added the kd commands that I mentioned above:
Double-clicking on a dump file now runs all of the commands in RED by default.
Please note that I made these changes yesterday for the first time, so it is far from 100% tested.
Regards. . .
John
Did you know that you can also add kd commands to run by default as well?
Simply setting up Windbg as the default program leaves Windbg at this point after double-clicking on a dump file -- waiting for you to enter additional commands at the kd> line such as !analyze -v -
Code:
[FONT=Lucida Console]*******************************************************************************[/FONT]
[FONT=Lucida Console]* *[/FONT]
[FONT=Lucida Console]* Bugcheck Analysis *[/FONT]
[FONT=Lucida Console]* *[/FONT]
[FONT=Lucida Console]*******************************************************************************[/FONT]
[FONT=Lucida Console] [/FONT]
[FONT=Lucida Console]Use !analyze -v to get detailed debugging information.[/FONT]
[FONT=Lucida Console] [/FONT]
[FONT=Lucida Console]BugCheck 50, {fffff80011b0e74d, 8, fffff80011b0e74d, 2}[/FONT]
[FONT=Lucida Console] [/FONT]
[FONT=Lucida Console]Could not read faulting driver name[/FONT]
[FONT=Lucida Console]Probably caused by : ntkrnlmp.exe ( nt! ?? ::FNODOBFM::`string'+43346 )[/FONT]
[FONT=Lucida Console] [/FONT]
[FONT=Lucida Console]Followup: MachineOwner[/FONT]
[FONT=Lucida Console]---------[/FONT]
I changed my default set up to include these commands -
Code:
[FONT=Lucida Console]!analyze -v;r;kv;lmtn;lmtsmn;.bugcheck[/FONT]
So, when I double-click on a dump file, all of the basic commands that I like to run do so without me having to enter them at the kd> command line.
Try it out!
Back up your registry first (I opted to create a system restore point).
Maneuver to this registry key and add your default Windbg commands -
Code:
[FONT=Lucida Console]HKLM\SOFTWARE\Classes\WinDbg.DumpFile.1\shell\Open\command[/FONT]
The (Default) should look something like this (by default):
Code:
[FONT=Lucida Console]"C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64\windbg.exe" -z "%1"[/FONT]
I added the kd commands that I mentioned above:
Code:
[FONT=Lucida Console]"C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64\windbg.exe" -z "%1"[COLOR=#ff0000] -c "!analyze -v;r;kv;lmtn;lmtsmn;.bugcheck"[/COLOR][/FONT]
Double-clicking on a dump file now runs all of the commands in RED by default.
Please note that I made these changes yesterday for the first time, so it is far from 100% tested.
Regards. . .
John