How to install and use Windows symbol File

Source: Internet
Author: User

1. Install the latest version of debugging tools for Windows, as follows: http://www.microsoft.com/whdc/devtools/debugging/default.mspx
This step is very important because Microsoft has updated windbg very frequently recently. Even if you do not need windbg, we also need two files in the windbg installation package (dbghelp. DLL and symsrv. DLL) to update the files attached to other debugging tools (such as IDA and SoftICE). Otherwise, it is very easy to download the latest symbol file from Microsoft symbol server correctly.

2. Add the Environment Variable _ nt_symbol_path and set the value as follows:
Symsrv * symsrv. dll * C:/symserver * http://msdl.microsoft.com/download/symbols
It indicates that if the required symbol file cannot be found, it will be downloaded from Microsoft's symbol server and saved to C: /symserver directory (this directory is used to be consistent with a symbol retriever tool included in DriverStudio.

3. use debugging tools for Windows to install dbghelp. DLL and symsrv. the DLL file overwrites the two files that are included in the third-party debugging tool-if any, such as IDA, SoftICE, boundschecker, and so on. Make sure that the two DLL files in these debugging tools are the latest version.

Now you can test it. Open symbol retriever, add a DLL at will, and click get symbols. If everything is normal, a protocol dialog box will pop up later, after confirmation, we can see that the status of this file is changed to done. We can go to C:/symserver/NTDLL. locate NTDLL in the PDB directory. PDB. This is the symbol file we want.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.