In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to configure and download WinDbg, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Basics of WinDbg configuration and usage
WinDbg is an excellent source code level (source-level) debugging tool released by Microsoft, which can be used for Kernel mode debugging and user mode debugging, as well as 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. Download WinDbg:
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 WinDbg- > menu-> File- > Symbol File Path- > to set the _ NT_SYMBOL_PATH variable as follows:
Type "C:\ MyCodesSymbols; SRV*C:\ MyLocalSymbols* http://msdl.microsoft.com/download/symbols"(" in the pop-up box, and WinDbg will first look for Symbol from the local folder C:\ MyCodesSymbols, and if it cannot be found, it will automatically download Symbols from MS's Symbol Server). Another way is to http://www.microsoft.com/whdc/devtools/debugging/symbolpkg.mspx from this Symbol download address, download the complete Symbol installation package required by the corresponding operating system, and install it, for example, I install it in D:\ WINDOWS\ Symbols, and type "D:\ WINDOWS\ Symbols" in this box. (please note that the downloaded version of Symbols must be correct. On my Win2003+Sp1, I once thought that installing Symbols for Win2003+Sp2 might be awesome, but it turned out that I was wrong. When I opened the executable file with WinDbg, I prompted the error of "PDB symbol for mscorwks.dll not loaded; Defaulted to export symbols for ntdll.dll". I have reinstalled the Symbols of Win2003+Sp1, and now everything is running normally.)
4. Use WinDbg:
WinDbg provides two operation modes: graphical interface and command line. Here is how to debug an application using WinDbg with a graphical interface:
File- > OpenExecutable- > you can select an executable file to debug
File- > Attache to a Process- > you 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 in the figure above. (for help documentation on the instruction, please see: Help- > Contents- > Debugging Tools for Windows- > Debuggers- > Debugger Reference, which contains all the function descriptions of the instruction machine!) .
The above is all the contents of the article "how to configure and download WinDbg". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.