Visual Studio doesn't cache Microsoft Symbol Server cache misses?
Asked Answered
V

2

13

I'm using the Microsoft Symbol Server with Visual Studio 2008 and it's working pretty well. Unfortunately, when the public symbol server doesn't contain the symbols, it takes a while to timeout, and Visual Studio attempts to reload the same missing symbols every time that I start my project for debugging.

Is there any way that I can get (or trick) Visual Studio into remembering the "misses" and not to bother again for a while?

Vaquero answered 12/6, 2009 at 8:46 Comment(0)
S
7

See this post
But it seems you can also control symbols loading with symsrv.ini
(I guess the ini file should go under ...\Microsoft Visual Studio 9.0\Common7\IDE folder)

Update: Just found this link. Using the registry is better than the ini file approach.

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Symbol Server\Exclusions]
"notepad.pdb"=""
"ora*.*"=""
Santo answered 13/7, 2009 at 11:1 Comment(1)
What does it mean if I don't have the "Symbol Server" folder in the registry?Doubleheader
I
7

You can do this through the VS IDE (I've done this in 2005, 2010 and 2012).

Method 1 (Recommended):

  • Open the "Modules" window (Debug->Windows->Modules)
  • Sort the list by "Symbol Status"
  • Find & select the group of modules with the status "Cannot find..."
  • Right click and select "Automatic Symbol Load Settings -> Always Load Manually"

Method 2:

  • Open "Tools->Options" and navigate to "Debugging->Symbols"
  • Click "Specify excluded modules" under the 1st radio button (which should be selected)
  • Add the module names to the list and click OK
Illuminant answered 26/9, 2012 at 1:46 Comment(3)
note: the "Modules" window is only available when debugging (VS2012 at least)Determiner
And, to manually specify the symbols, choose "Load Symbols" from the context menu of the module in question.Daly
In VS2019 there is only a toggle for Always Load Automatically. Start a new desktop project with this setting and debug it, and the symbols start downloading as if there was no local symbol cache, which is assuredly still here, and used by another project, which is not open in another window (as if that should make any difference). However there is another workaround!Brawny

© 2022 - 2024 — McMap. All rights reserved.