Prevent loading symbols in VisualStudio

asp.net, c#, symbols, visual-studio, visual-studio-2015

Solution

I too had this frustrating problem and eventually discovered that just having a path set for "Cache symbols in this directory" will cause Visual Studio 2022 to attempt to load symbols for non-solution projects and package references. Unchecking the symbol servers or selecting "Load only specified modules" has little effect, as it only means VS2022 will not download any new symbols, while still using the cached ones.

This had all kinds of infuriating effects, such as causing the "Enable Just My Code" setting to not work and constantly breaking the debugger on (benign) exceptions in the .Net framework code.

While clearing the folder with the "Clear Symbol Cache" button can fix the "Enable Just My Code" issue, it will still cause lots of symbol loading errors in the output window when you stop debugging. To get rid of those annoying errors and that symbol loading dialog too, make sure the path is not specified at all:

Problem

I am using Visual Studio 2015. I want to prevent symbols loading for all the core dlls like System.Net, System.Web etc..., I just want to load symbols only for the dlls which are in my solution. I have already done this setting: i.e in Tools >> Options >> Debugging >> Symbols >> Only specified modules I have added my few dlls for which I want symbols to be loaded. But when I run my solution I still see in the VS status bar that it is loading symbols for the core libraries like System.Net, System.Web etc... How can I prevent that? I just want symbols of my 4 dlls which are in my solution to be loaded since my intention is to debug those dlls only and not the System core dlls. Is this even possible? Or will VS will always load symbols of core files.

Original source

Related problems