进行更改后,编辑并继续缓慢 [英] Edit and Continue slow after making a change

查看:129
本文介绍了进行更改后,编辑并继续缓慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


当我点击断点并进行更改然后继续(F10)时,它会挂起约20秒。  我的项目在Visual Studio 2013中运行良好。我注意到我的项目越大,EnC越慢。我的解决方案中有一些项目的大小变化了
,而在调试期间更改代码时,较小的项目要快得多。 



Specs :
$
Windows 10周年更新。 (也在另一台使用Windows 7的机器上尝试过,同样的问题)

Visual Studio 2015更新3

.net 4.6.2

VB。大多数项目的NET,解决方案中的一些项目是C#。

WinForms app。

TFS





任何建议都会很棒,因为这会减慢我们的速度!

解决方案

好问题,可能有很多原因,在新版本的Visual Studio中,可以对CLR进行更多调用以获取运行应用程序和调试所需的特定信息。可能,在较新的版本中,有更多功能在后台运行
导致速度减慢。



另一个警告是在设置中启用仅调试代码。



这些链接可能有所帮助:


启用Just My Code(使用它来调试你的代码) () https://msdn.microsoft.com/ en-us / library / dn457346.aspx


调试入门


https://msdn.microsoft.com/en-us/library/dn986851.aspx


< a href ="https://msdn.microsoft.com/en-us/library/dn986851.aspx">


希望有所帮助!


When I hit a breakpoint and make a change then continue (F10) it hangs for about 20 seconds.  My project worked fine in Visual Studio 2013. I have noticed that the bigger my project is, the slower EnC is. I have a few projects in my solution that vary in size and the smaller projects are much faster when changing code during debugging. 

Specs:
Windows 10 Anniversary update. (Also tried it on another machine with windows 7, same issue)
Visual Studio 2015 update 3
.net 4.6.2
VB.NET for most of the projects, some projects in the solution are C#.
WinForms app.
TFS

Any suggestions would be great as this is slowing us down!

解决方案

Good question, there could be a number of reasons, in new versions of Visual Studio, more calls could be made to CLR to get the specific information needed to run your application and debug. Possibly, with the newer version there are more features running in the background causing the slowdown.

Another alertnative is turning on debug only your code in the settings.

These links might help:

Enabling Just My Code (use this to debug just your code).

https://msdn.microsoft.com/en-us/library/dn457346.aspx

Getting Started with Debugging

https://msdn.microsoft.com/en-us/library/dn986851.aspx

Hope that helps!


这篇关于进行更改后,编辑并继续缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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