Installing and configuring Windbg to debug minidumps

Windbg is available from Microsoft here. Don’t bother about downloading symbols packages just yet - they’re quite large (around 700MB) - it’s easier to configure Windbg to download symbols as you need them.

Symbols are information such as function/variable names/locations/attributes that are removed from executable files and DLL at compilation. A compiled programme doesn’t need this information, thus removing it makes for smaller executables. For the debugger to function successfully, it will need a symbol file. Microsoft distribute their symbol files (not all developers do), so debugging OS crashes is a lot simpler.

Once you’ve installed Windbg, follow the following steps to configure Windbg to download the symbols as needed.

  1. Create a directory to store the symbols on a local drive. (C:\foo for example).
  2. Open Windbg
  3. Select the File menu
  4. Select Symbol File Path
  5. Enter the following string, substituting your symbol directory for c:\foo: SRV*c:\foo*http://msdl.microsoft.com/download/symbols
  6. Select the File menu
  7. Select Image File Path
  8. Enter the following string: c:\windows\system32; c:\windows\system\system32; http://www.alexander.com/symserve

The addition of the image file paths will allow you to handle minidumps from another machine.

 
windows/windbg.txt · Last modified: 12:26am Mon 25 Jun 2007 by cynos
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki