Debug Symbols not loading

狂风中的少年 提交于 2019-12-05 12:48:26

问题


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 -

also -

Debugging 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

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

large scale version link

I get this tab -

Large scale version link

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

Large scale version link

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?


回答1:


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.




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/9778159/debug-symbols-not-loading

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!