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?

Roger Lipscombe
  • 89,048
  • 55
  • 235
  • 380

2 Answers2

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*.*"=""
Dono
  • 1,254
  • 13
  • 30
Tal
  • 1,759
  • 1
  • 12
  • 22
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
Grant Peters
  • 7,691
  • 3
  • 45
  • 57
  • note: the "Modules" window is only available when debugging (VS2012 at least) – Julian Feb 24 '14 at 10:54
  • And, to manually specify the symbols, choose "Load Symbols" from the context menu of the module in question. – jpaugh Mar 12 '19 at 20:33
  • 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](https://stackoverflow.com/a/62173034/2128797)! – Laurie Stearn Jan 19 '21 at 09:35