http://blog.csdn.net/witxjp/article/details/8118481
The first step to using WinDbg is to set the location of the symbol file, which is the PDB file.
Symbol Path settings:
Ctrl+s Enter your symbol path in the pop-up window, the path can be formatted as long as the Windows operating system path format, the path may be multiple, the middle of the semicolon interval, d:\symbols\win2k3_en;
windbg can automatically download symbol table files (. dbg or. pdb, and sometimes DLLs and EXE) to a Microsoft server, as long as the following settings are set in the conforming table path: srv*d:\symbolslocal*/http Msdl.microsoft.com/download/symbols, so if the related symbol table is not found in the D:\symbolslocal directory, WinDbg will automatically be in Microsoft's symbol Servers download.
If you are debugging your own application, it is recommended that you put the path of your application's *.pdb file in front so that it looks faster for WinDbg. For example: Enter the following text in the WinDbg file/symbol File Path dialog box to automatically load and download symbols c:\windows\symbols;d:\program Files\Microsoft Visual Studio 8\ Sdk\v2.0\symbols;. Sympath Srv*d:\localsymbols*http://msdl.microsoft.com/download/symbols
Source File path Settings:
Ctrl+p in the popup window to specify the path of your source code file, the path format as long as the format of the Windows operating system can be specified, multiple, in the middle of a semicolon interval. You can save your settings, File->save Workspace.
System Variable settings:
My Computer-properties-> advanced tab-> enviroment variables-> Add.
_nt_debug_baud_rate=115200
_nt_symbol_path=srv*c:\windows\symbols*http://msdl.microsoft.com/download/symbols
_nt_alt_symbol_path = D:\mydriver\objchk_wxp_x86\i386
_nt_source_path = D:\mydriver
Start VMware and copy the host directory C:\WINDOWS\Symbols to the same location as the virtual machine.
At the same time, the driver compiles the *.pdb, *.sys, *.map, *.exp, *.lib files in the D:\mydriver\objchk_wxp_x86\i386 directory and copies them to the C:\WINDOWS\Symbols directory of the two systems.
Restart VMware and do not hit the ENTER key when selecting System mode.
WinDbg shortcuts that were set up before running in the host.
Until "Waiting to reconnect ..." appears in the WinDbg Command window, turn on VMware and hit Enter to enter the virtual machine. All the setup work is done here.
Z
"Go" windbg symbol path setting