WinDbg configuration and use of the basic WinDbg is a Microsoft released a very good source-level (Source-level) debugging tools, can be used for kernel mode debugging and user-mode debugging, you can also debug dump files.
1. WinDbg Introduction:
Debugging Tools and Symbols:getting Started
Http://www.microsoft.com/whdc/devtools/debugging/debugstart.mspx
A Word for WINDBG
Http://mtaulty.com/communityserver/blogs/mike_taultys_blog/archive/2004/08/03/4656.aspx
2. windbg Download:
Install debugging Tools for Windows 32-bit Version
Http://www.microsoft.com/whdc/devtools/debugging/installx86.mspx
Install debugging Tools for Windows 64-bit Versions
Http://www.microsoft.com/whdc/devtools/debugging/install64bit.mspx
3. Configure WinDbg:
Run the windbg-> menu->file->symbol File path-> Set the _NT_SYMBOL_PATH variable as follows:
In the box that pops up, enter "C:\MyCodesSymbols; Srv*c:\mylocalsymbols*http://msdl.microsoft.com/download/symbols "(Following this setting, WinDbg will first be from the local folder \ c \ Find Symbol in Mycodessymbols, if not found, automatically download symbols from MS's symbol server). Another way is to http://www.microsoft.com/whdc/devtools/debugging/from this symbol. symbolpkg.mspx, download the complete symbol installation package required by the appropriate operating system and install it, for example, I install it in D:\WINDOWS\Symbols, and enter "D:\WINDOWS\Symbols" in the box. (It is important to
note that the downloaded symbols version must be correct., on my win2003+sp1, I used to think that installing WIN2003+SP2 's symbols might be bull X, but it turns out I was wrong, and when I open the executable with WinDbg, it prompts "PDB symbol for Mscorwks.dll not Loadeddefaulted to export symbols for Ntdll.dll "error, I have to reload win2003+sp1 symbols, now everything is running normally ^_^)
4. Use WinDbg:
WinDbg provides a graphical interface and command line two ways to run. Here's an introduction to using the graphical interface's WinDbg to debug your application:
File->openexecutable-> can choose an executable file for debugging;
File->attache to a process-> can select a running process and debug it;
At this point, we can enter each function instruction in the text box marked with a red box (for instructions on the Help document, you can refer to: help->contents->debugging Tools for windows->debuggers- >debugger Reference, the directory below sets all instruction machine function descriptions! )。
Transferred from: http://lwglucky.blog.51cto.com/1228348/285334
windbg Configuration and download (reprint)