Visual Studio cannot find or open PDB file resolution
When using the VS debugger, sometimes you will be prompted in the output box at the bottom of VS to "cannot find or open PDB files." How does this work?
Below, we take VS2013 as an example, to teach you the solution.
Method/Step
- 1
Open the VS2013 and click the menu "Tools"-"options".
- 2
In the Options window, expand Debug-General, and then tick enable source server support in the right pane.
- 3
then expand "Debug"-"Symbols" and tick "Windows Symbol server".
- 4
a warning dialog box pops up, ignoring clicking OK .
- 5
Finally, click "OK" to close the Options window.
- 6
Next, let's click on the "Local Windows Debugger" to debug the Run program.
- 7
When you run the program for the first time, the associated symbol set is downloaded from the Windows Server, which takes a little time.
- 8
Later on, the program starts. Later, if you debug the program again, you do not have to wait again (because the symbol set has been downloaded from the server to local).
Precautions
- The first time you debug a program, you need to load the symbol set from the server in networking.
Reference: http://jingyan.baidu.com/article/90bc8fc87fbafff653640ca6.html
Visual Studio cannot find or open PDB file resolution