Creating a GUI cheat sheet for commonly used WinDbg commands.

There is an undocumented feature in WinDbg that may be useful for remembering WinDbg commands and essentially building a personalized GUI cheat-sheet of commonly commands. The syntax is “.cmdtree c:\debuggers\cmdtree.txt” where cmdtree.txt is a text file describing all of the commands. This was picked up on several popular debugging blogs, such as:http://blogs.msdn.com/debuggingtoolbox/archive/2008/09/17/special-command-execute-commands-from-a-customized-user-interface-with-cmdtree.aspxhttp://www.wintellect.com/CS/blogs/jrobbins/archive/2008/09/17/windbg-cmdtree-file-that-eases-some-sos-pain.aspxhttp://blogs.msdn.com/tess/archive/2008/09/18/making-it-easier-to-debug-net-dumps-in-windbg-using-cmdtree.aspx An example of this is provided…

1

How to run an ETW trace through a reboot.

In Windows Vista and Server 2008, you can use the AutoLogger feature to trace a component during the boot process (or through a reboot) by adding a registry value as described in the following MSDN article and rebooting the system: http://msdn.microsoft.com/en-us/library/aa363687(VS.85).aspx Pre-Vista (or in Vista / 2008 if you’re feeling retro), you can use the…

1