WinDgb script when debugging drivers

by Ian Davis on May 1, 2010

in Programming

If you ever happen to be writing a device driver and you want to have WinDbg configured to run a set of scripts, this configuration for WINDBG.INI may be of help. If it doesn’t mean anything to you, don’t worry, nothing to see here other than pain. Replace anything in {} with your own paths and file names. This is configured for kernel debugging over 1394.

[WinDbg Location]
C:\Program Files\Debugging Tools for Windows (x86)\windbg.exe
[WinDbg CmdLines]
-T "Initial WinDbg Line" -c "SQE;BL"
-T "Default" -Q -QY -y http://msdl.microsoft.com/download/symbols;C:\{PathToBinFiles} -k 1394:channel=44,symlink=Channel -c "SQE;BL;.kdfiles -m \Systemroot\system32\DRIVERS\{YourDriver1}.sys C:\{PathToBinFiles}\{YourDriver1}.sys;.kdfiles -m \Systemroot\system32\DRIVERS\{YourDriver2}.sys C:\{PathToBinFiles}\{YourDriver2}.sys;.kdfiles"

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DotNetKicks
  • DZone
  • email
  • LinkedIn
  • RSS
  • StumbleUpon
  • Technorati
  • Twitter
blog comments powered by Disqus

Previous post:

Next post: