Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug Symbols not loading

Tags:

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?

like image 883
Duncan Gravill Avatar asked Mar 19 '12 21:03

Duncan Gravill


People also ask

How do I load Debug symbols?

On the Tools > Options > Debugging > Symbols page, you can: Specify and select search paths for symbol files. Specify symbol servers for Microsoft, Windows, or third-party components. Specify modules that you do or don't want the debugger to automatically load symbols for.

How do you fix the breakpoint will not currently be hit no symbols loaded?

Just something simple to try - you may have tried it already. Right click the Solution in solution explorer, click "clean solution", this deletes all the compiled and temporary files associated with a solution. Do a rebuild of the solution and try to debug again.

Why is Eclipse debugging not working?

The solution was to enable it again, start a debug session, the breakpoint is hit and shown in the UI, then disable again the option. There is also another simpler way that will make Eclipse show the debugging highlight at the breakpoint or rather refresh the debugging UI to work as it should.

How do I add symbols to remote debugging?

Go to Tools->Options->Debugging->Symbols and add the path to the .


1 Answers

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.

like image 106
Richard Anthony Freeman-Hein Avatar answered Apr 22 '23 21:04

Richard Anthony Freeman-Hein