How to install and use Windows symbol

Source: Internet
Author: User

1. Download the Windows symbol package that meets your running Windows Version: http://www.microsoft.com/whdc/devtools/debugging/symbolpkg.mspx
Select the installation path. Generally, the default installation path is C:/Windows/symbols. Of course this stuff is not installed, but I recommend that you install it, because it takes a lot of time to download all the symbol files from the server. With this stuff, most symbol files can be found locally.

2. Install the latest version of debugging tools for Windows, as shown below: 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.

3. add the Environment Variable _ nt_symbol_path and set the value as follows (If your symbol package is not installed in the C:/Windows/Symbols directory, modify it by yourself):
C: /Windows/symbols/16bit; C:/Windows/symbols/ACM; C:/Windows/symbol/ax;
C:/Windows/symbols/NV; C: /Windows/symbols/COM; C:/Windows/symbols/CPL;
C:/Windows/symbols/DIC; C:/Windows/symbols/DLL; C: /Windows/symbols/drv;
C:/Windows/symbols/Ds; C:/Windows/symbols/EXE; C:/Windows/symbols/IEC;
C:/Windows/Symbol S/IME; C:/Windows/symbols/OCX; C:/Windows/symbols/SCR;
C:/Windows/symbols/sys; C: /Windows/symbols/TPL; C:/Windows/symbols/TSP;
C:/Windows/symbols/WPC; symsrv * symsrv. DLL * C:/symserver * http://msdl.microsoft.com/download/symbols
here the most important is the last path: symsrv * symsrv. DLL * C:/symserver * upload file, which is downloaded from Microsoft's symbol server and downloaded symb Ol file is saved to the C:/symserver directory (this directory is used to be consistent with a symbol retriever tool included in DriverStudio.

4. 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.

 

This article from the csdn blog, reproduced please indicate the source: http://blog.csdn.net/tiantian2999/archive/2008/05/04/2378235.aspx

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.