Duncan Gravill
Duncan Gravill

Reputation: 4702

Debug Symbols not loading

I am trying to configure visual studio to enable me to step into the .net framework source code when I am debugging.

I have tried with both Visual Web-Developer-Express-2010 and Visual-Studio-2011-Express-For-Web as well as Visual-Studio-2011-Express-For-Web on Win8CP and I am getting the same problem with each.

I have read numerous tutorials on how to set it up and the settings I have I believe to be correct.

Debugging General Settings -

debug general settings one

also -

debug general settings two

Debugging Symbol Settings -

debug symbol settings

I have tried both of these symbol servers. When I click Load all Symbols this is the output I get saying symbol loads have failed -

Large scale version link failed symbol loads output

If I run the code to the breakpoint, right click and select the specific method to step into like so -

large scale version link example of how I try to step into source code

I get this tab -

Large scale version link failed loads error tab

If I look in my SymbolCache folder, there is only a FailedLoads folder with these contents -

Large scale version link FailedLoads folder contents

My project is in debug mode. I have also tried running VS as administrator. I have full control over the SymbolCache directory. I am on a home network and have full access to my internet connection.

Why is this not working?

Upvotes: 21

Views: 15799

Answers (3)

brando
brando

Reputation: 11

I had this problem - no symbols loading - and spent a week trying to solve it. My problem was that I had for the first time started using Master pages in my website project. And I was incorrectly creating the content pages; the error was that i was not indicating the codebehind file in the page directive of the content page so my codebehind file was in essence unconnected to the build of the project. A dumb mistake and simple fix after a week of frustration. Hope this helps some lost programming soul stuck with the same problem.

Upvotes: 1

Richard Anthony Hein
Richard Anthony Hein

Reputation: 10650

Source stepping is only available for RTM or SP releases.

See http://social.msdn.microsoft.com/Forums/en-US/refsourceserver/thread/1b74f60c-e961-425c-a38e-362406dd4cfe.

Since 4.5 assemblies keep the same version number as 4.0 (stupid idea), then there is no way to get compatible symbols + source right now, so this is impossible with VS11 installed. You must start over with a clean machine and don't install .NET 4.5.

This is really stupid … the whole point of versioning just thrown out the window.

Upvotes: 8

Gregory A Beamer
Gregory A Beamer

Reputation: 17010

Have you set up the environment to load the symbols (note: by default, the symbols are not set to load - have not checked VS 11, btw (will do so later)).

You can also check out this article for info on symbols. I will have to check if there is a manual download for symbols for .NET.

You can also set up source server manually to http://referencesource.microsoft.com/symbols. You cannot browse the reference source.

Upvotes: 1

Related Questions