Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symbol loading disabled by Include/Exclude Setting

I am using VS 2017 to debug a running process.

First, I generated PDB with DotPeek. enter image description here

Second, I pointed the directory of pdb location ("C:\PdbDestination") in VS 2107. enter image description here

Third, I attached to a process which uses that particular assembly, modules are loaded, however, symbol loading is disabled. enter image description here The expected result is for the Symbol Status to show "Symbol Loaded".

Could someone please let me know anything I could have possibly missed?

I was able to fix the issue by manually loading it from Modules tab, but I would still like to know what is the actual root cause (e.g. Include/Exclude setting?) that disables the symbols loading.

like image 803
xdrnc Avatar asked Jun 25 '18 09:06

xdrnc


People also ask

How do I stop the symbol from loading in Visual Studio?

In general, to totally control what symbols are being loaded and when, check the checkbox called "Search the above locations only when symbols are loaded manually". Symbols will only be loaded when you ask for them to be loaded via the modules or callstack windows. Also, make sure you have a symbol cache specified.

How do I load debug symbols in Visual Studio?

In Visual Studio, open Tools > Options > Debugging > Symbols (or Debug > Options > Symbols).


1 Answers

Please check if "Load all modules, unless excluded" is selected.

Go to Options -> Debugging -> Symbols Visual Studio: Debugs -> Options dialog

like image 149
Rohit Kumar Avatar answered Sep 18 '22 12:09

Rohit Kumar