慢符号加载在ASP.NET项目VS2012 [英] Slow symbol loading in an ASP.NET Project in VS2012
问题描述
我在与我的ASP.NET MVC项目加载符号的问题。我第一次加载Visual Studio和调试我的项目,符号将被装载大致2秒。我还是那句话结束调试会话,使code的修改和调试,符号加载时间约一分钟。基于我也做了研究,这里有我的机器上的一些适用的设置/ VS:
I'm having an issue with loading symbols on my ASP.NET MVC project. The first time I load visual studio and debug my project, symbols are loaded in roughly 2 seconds. I then end the debug session, make a code modification, and debug again, and the symbol load time is about a minute. Based on the research I have done, here are some applicable settings on my machine/VS:
在选项/调试/符号/符号文件的位置,微软符号服务器被选中,并且没有额外的位置。
In Options/Debugging/Symbols/Symbol file locations, "Microsoft Symbol Servers" is unchecked, and there are no additional locations.
选项/调试/符号/此目录中缓存的符号是G:\\符号缓存。我没有点击加载所有的符号,我已检查该目录,我看到很多的符号。
Options/Debugging/Symbols/Cache symbols in this directory is "G:\Symbol Cache". I did click "Load all symbols" and I have inspected that directory and I see lots of symbols.
只是我的code被启用。
Just my code is enabled.
该_NT_SYMBOL_PATH和_NT_ALT_SYMBOL_PATH环境变量没有在我的机器上定义。
The _NT_SYMBOL_PATH and _NT_ALT_SYMBOL_PATH environment variables are not defined on my machine.
选项/调试/符号/为被设置为只有指定的模块,没有指定的模块自动加载的符号。
Options/Debugging/Symbols/Automatically load symbols for is set to "Only specified modules", with no modules specified.
我曾尝试调试和发布版本,具有相同的结果。按Ctrl + F5几乎立即加载该网站。
I have tried both debug and release builds, with identical results. Ctrl + F5 loads the site almost immediately.
推荐答案
我也有这个问题,原因是我当时无意中启用了Microsoft符号服务器
I too had this problem, the cause was that I had accidently enabled the "Microsoft Symbol Server"
您可以通过工具>选项>调试>符号禁用它,取消选中Microsoft符号服务器
You can disable it by going to Tools > Options > Debugging > Symbols and uncheck the "Microsoft Symbol Server"
现在它加载一样快,因为它使用的。
Now it loads just as fast as it used to.
这篇关于慢符号加载在ASP.NET项目VS2012的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!