Every time when I’m installing Visual Studio one a clean computer I have problems remembering the steps that need to be done on Visual Studio to see the source code of the .NET framework.
In the next lines we will look over the steps that need to be done. Next time when I will need to make this configuration I will come back to this post.
We need to go in Visual Studio menu, under Tool->Options and select the Debugging tab. In the general node we will need to check/uncheck the following options:
- Uncheck the “Enable Just My Code (Managed only)”
- Uncheck “Require source files to exactly math the original version”
- Check “Enable source server support”
In this moment we are almost done, the only think that we need to do is to double check under Symbols node that “All modules, unless excluded” is checked. In general I prefer to create a custom path where the symbols are downloaded.
While you are debugging, if you have any kind of problems loading this symbols, go on the call stack, right click on the stack and check if “Symbol Path” is selected in the “Load Symbols From”.
First time when you will debug after these changes, you will notify the application will run slower, because pdb files are downloaded.