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.