Code Pyre

All Code Dies and Burns in Time

Fork me on GitHub

WinDgb Script When Debugging Drivers

| Comments

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.

1
2
3
4
5
[WinDbg Location]
C:Program FilesDebugging 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 Systemrootsystem32DRIVERS{YourDriver1}.sys C:{PathToBinFiles}{YourDriver1}.sys;.kdfiles -m Systemrootsystem32DRIVERS{YourDriver2}.sys C:{PathToBinFiles}{YourDriver2}.sys;.kdfiles"

Comments