加载符号时,Visual Studio调试非常缓慢 [英] Visual Studio debugging painfully slow when loading symbols

查看:111
本文介绍了加载符号时,Visual Studio调试非常缓慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到的问题实际上与 Visual Studio调试/加载非常慢,但我还没有找到解决此类问题的方法.

I have an issue which is practically similar to Visual Studio debugging/loading very slow but I haven't managed to find a solution to such a problem.

我已经尝试了该问题中描述的所有内容,但是,第一次符号加载却非常慢.

I have tried all what is described within that question and still, the symbol loading for the very first time is drastically slow.

与另一个问题类似,当启动一个MVC项目时,我在输出"面板中看到几行,这些行类似于:

Similarly to the other question, when starting an MVC project, I get several lines within the Output panel which consist of something similar to:

'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\02ba097f\ab73cbf7\App_Web__headerusermenu.cshtml.ee708ea.myhgafpb.dll', Symbols loaded.
'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\02ba097f\ab73cbf7\App_Web__layoutcmsbase.cshtml.ce72eb6d.ovoanhe-.dll', Symbols loaded.
'iisexpress.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\02ba097f\ab73cbf7\App_Web__notificationmessage.cshtml.5346933.9aei7ems.dll', Symbols loaded.

每个条目大约需要300到500毫秒,并且对于我们在项目中拥有的所有部分视图都将执行这些条目,这是相当可观的.

Such entries take around 300 - 500 ms each and these are executed for all the Partial Views we have within the project, which are quite considerable.

我已经尝试了另一个问题中的解决方案,但仍然没有获得快速的响应时间.

I have tried the solution within the other question but still didn't get any fast response times.

这些是我们进行的一些测试:

These are some tests we have made:

  • 加载网站最初大约需要2分钟
  • 停止网站并重新启动大约需要1分钟45秒
  • 网站运行后,我按加载所有符号"(工具">"Otions">调试">符号">加载所有符号"),然后停止项目并再次运行,它花费的时间少得多,大约25秒.不过,在项目未运行时,加载所有符号"按钮仍处于禁用状态,因此,这是我第一次需要等到项目加载后才能按加载所有符号".
  • 从最初开始,大约需要50秒
  • 停止项目并重新开始,大约需要20秒钟
  • 单击加载所有符号",停止项目并再次开始大约需要15秒钟

这变得非常沮丧,因为要第一次加载项目要花费很长时间.

This is getting extremely frustrating as it is taking an extremely long amount of time in order to load project for the first time.

除了问题中提到的解决方案之外,其他任何可能的解决方案Visual Studio调试/加载速度都很慢可能有帮助?

推荐答案

在我的情况下,我在VS中打开了一个文件,该文件不属于我当前的解决方案(它是一个XML文件,我已将其标记为断点)供快速参考).当我删除这些特定的断点时,问题解决了.

In my case, I had a file open in VS that was not part of my current solution (it happened to be an XML file which I had marked with breakpoints for quick-reference). When I removed those particular breakpoints, the issue resolved.

这篇关于加载符号时,Visual Studio调试非常缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆