Windbgthe Settings
Settings for Windbg
Windbg itself can be downloaded directly from Microsoft's website
: http://www.microsoft.com/whdc/devtools/debugging/default.mspx
Windbg settings are mainly about the debug symbol settings , no symbols you will be very uncomfortable , will ignore a lot of details , so debug symbols for Windbg is very important .
1.setup of System debug Symbols
First, find a space enough to position, XP SP2the debug symbol complete a bit probably need1Gof Space~~
Like I was inDDisk,Create aMylocalsymbolsfolder,symbol files used to store the system.
Then you can download the corresponding debug symbol package from Microsoft's website( the180m~200msize),To download according to the appropriate system version in your virtual machine, install toMylocalsymbolsfolder under.
Of course,If you do not install the symbol pack, you can also set it to automatically download from the Internet when debugging(even if you install the symbol pack,part of the content or to be downloaded online),specifically how to set it later.
But I prefer to finish it one more time.,so you don't have to wait for it every time you use it. It's slow to download online~~
2.settings for your own debug symbols
Build a folder again,A symbol file for storing our own compiled drivers.Store separately,don't get mixed up with the system..
I'm still here.Ddisk to create aMysyssymbolsfolder,for storing your own symbol files.
Then create a shortcut to this folder,Put it inC:\Documents and Settings\your user name\sendtofolder under.
Such,After compiling the drive later,Right-click on the symbol file directly -sent to"Mysyssymbols"you can do it.,very convenient~~
3.settings for Environment variables
If you want toWindbgautomatic recognition of Symbol path settings at startup,We're going to create an environment variable
In"My Computer"Right-click on,"Properties" ,"Advanced" ,"Environment Variables",then we give the current record a new one named_nt_symbol_paththe environment Variables
Value is:
D:\mylocalsymbols;d:\mysyssymbols; Srv*d:\mylocalsymbols*http://msdl.microsoft.com/download/symbols
After this setting,the system's debug symbols areD:\MyLocalSymbolsunder,and the debug symbols we drive ourselves areD:\MySysSymbolsunder
When symbol files do not match, Windbgwill automatically connect to the network fromHttp://msdl.microsoft.com/download/symbols Download symbol files toD:\MyLocalSymbols,The next time you use it, you don't have to download it.
Set it up so you can save it.,modifying environment variables requires a system restart to take effect~
I'll say a little more here.,After you've spent some time,commonly used symbol files are basically all have, do not want to wait, can also use some methods to letWindbgDownload symbol file now
Directly hit some correct but incorrect or mismatched symbol names in the current symbol package can be"Stimulation"Windbgdownload it online now,That's what I do to save time..like hittingDT NT!_KPCR,If your kernel fileTimedatastampdoes not match(several core files, such as the kernel, are often so updated)makeWindbgThis symbol cannot be displayed correctly,It's going to be ready to download the entire symbol file back online .~~
After the debugging symbols are basically complete ( when debugging basically no longer appear Windbg to download symbol files ), it is recommended to remove the network parts of the environment variables. In my case, it's set to d:\mylocalsymbols;d:\mysyssymbols .
Windbg Source Debug Configuration
All three of these should be set to the directory where the debug SYS file is located
I developed it with vs2013 . So the project directory is (which is to be in the code directory)
To debug, you must put the code with the SYS file . obj all must exist put together. In this way , WinDbg will load and debug simply by putting the code . cpp. h All files in the win7debug inside
WINDBG Dual-machine code synchronization debug Settings