Install and configure the windbg symbolic file (translated from the reply of an article, repeat regkiller)

Source: Internet
Author: User

Install and configure the symbol of windbg)

This article is a little bit written by a newbie. I suggest you take a look at it. I hope you will give me more advice.

Motivation for writing this article: I found a windbg configuration symbol tutorial on the Internet. I couldn't find the details, but all of them were too vague and copied from each other. not suitable for beginners. I finally learned a little through my own efforts.

Install and configure the symbol of windbg)

The first step is to download the latest version of windbg from the http://www.microsoft.com/ddk/debugging, because the symbolic server binaries were developed by the windbg team.

You will need to check whether there are any windbg updates, because the team seems to have a very tight release schedule and will release the updates every few months.

Step 2 double-click the downloaded file to install windbg. Remember to install it.

Step 3: The windbg access symbol requires two files (symsrv. dll and symstore. EXE). Therefore, add their paths in the main path environment variable, that is, your windbg installation directory.

Operation Method: Right-click my computer on the desktop, select Properties> advanced> environment variables, and double-click path in the system variables list box, add a semicolon at the end of the variable value and write your installation directory. click OK.
This step tells windbg where the two files are stored.

Step 4 Create an environment variable _ nt_symbol_path with the value SRV * c: \ mysymbol * http://msdl.microsoft.com/download/symbols

Operation Method: Right-click my computer on the desktop, choose Properties> advanced> environment variables, and click New. Fill in the above variable name and variable value. this step tells windbg that my symbolic file is stored in C: \ mysymbol (of course there is nothing in it, or even this folder does not exist, but it doesn't matter, if the system cannot find it, it will create a file for you and store it in the above URL)

Step 5 run windbg to open an EXE file or attach it to a process, you will see the symbol search path is: SRV * c: \ mysymbol * http://msdl.microsoft.com/download/symbols

Open drive C and you will see a new directory named mysymbol, which contains the newly downloaded windbg file.

Congratulations! The configuration is successful.

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.