18

I am using VS 2017 to debug a running process.

First, I generated PDB with DotPeek. The PDB Generation window

Second, I pointed the directory of pdb location ("C:\PdbDestination") in VS 2107. The Options window showing the settings for "Debugging"->"Symbols"

Third, I attached to a process which uses that particular assembly, modules are loaded, however, symbol loading is disabled. The modules panel highlighting the Symbol Status column which states the message in the question title 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.

5
  • How about running your VS as the admin? Generally it will require the enough access permission to load certain files. Commented Jun 27, 2018 at 8:59
  • Hi @JackZhai-MSFT , Yes I did use admin right for debugging Commented Jun 28, 2018 at 4:12
  • I have just updated the question above that I actually managed to load the symbol if I did it manually and successfuly entered the breakpoint. Commented Jun 28, 2018 at 4:19
  • Please use the default cache symbols directory in your side, view the result. As far as I know, it was in the Temp\SymbolCache folder. You could reset your VS settings, and then enable the Microsfot Symbol Servers, click OK, it would use that directory automatically. In addition, please disable debugging option "Require source files to exactly match the original version" under TOOLS->Options->Debugging. Debug your app again. Commented Jun 28, 2018 at 6:08
  • What about this issue in your side? Any update, feel free to let me know. Commented Jul 2, 2018 at 5:52

2 Answers 2

22

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

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

Sign up to request clarification or add additional context in comments.

2 Comments

Not sure to understand. Should we select it or not?
@DRz You should select but it requires pretty long time to loading required library.. I wonder theres another options.
10

Update for VS 2022:

To repair "Symbol loading disabled by Include/Exclude setting" go to Tools / Options / Debugging / Symbols and select Search for all module symbols unless excluded.

It worked for me.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.