简体   繁体   English

Visual Studio 2012中的调试很慢

[英]Debugging in Visual Studio 2012 is slow

We have a large ASP.NET application that has been built over the last decade and is now running in .NET 4.0. 我们有一个大型的ASP.NET应用程序,它是在过去十年中构建的,现在运行在.NET 4.0中。

Recently, we upgraded to Visual Studio 2012 Premium (from 2010 Premium). 最近,我们升级到Visual Studio 2012 Premium(2010年Premium)。
Our application compiles successfully, and when we run/debug our application its from a local IIS on each one of our developer workstations (versus using using the development server). 我们的应用程序成功编译,当我们从每个开发人员工作站上的本地IIS运行/调试我们的应用程序时(与使用开发服务器相比)。

Ever since upgrading to 2012, when we are debugging our application, we have noticed the application to run VERY slow in loading ASP.NET pages, it can take nearly 20-30 seconds per page. 自从升级到2012年以来,当我们调试我们的应用程序时,我们注意到应用程序在加载ASP.NET页面时运行非常慢,每页可能需要将近20-30秒。 But, when we access the application straight to the local IIS and without using the VS2012 debugger, it runs great. 但是,当我们直接访问本地IIS并且不使用VS2012调试器时,它运行得很好。 Something about debugging in Visual Studio 2012 on our application is slowing down our application performance significantly. 在我们的应用程序中使用Visual Studio 2012进行调试的事情正在显着降低我们的应用程序性能。

Is there a good tool we could use to capture what is going on in the background? 是否有一个很好的工具可以用来捕捉背景中发生的事情?

Also, this is happening on both Windows 7 Enterprise machines and Windows 8 Pro machines. 此外,这种情况发生在Windows 7 Enterprise计算机和Windows 8 Pro计算机上。 All 64 bit with 8+ GB of RAM, and Intel Core i7 processors. 所有64位,8 GB以上的RAM和Intel Core i7处理器。

Thanks for any help. 谢谢你的帮助。

My debug on VS 2012 was very slow, it was taking 20~30 seconds for every step. 我在VS 2012上的调试非常慢,每一步都需要20~30秒。

My solution was disable the .NET Reflector extension. 我的解决方案是禁用.NET Reflector扩展。

Go to Tools - Extensions and Updates - Disable .NET Reflector. 转到工具 - 扩展和更新 - 禁用.NET Reflector。

尝试删除所有断点,然后清理并重建解决方案并再次调试。

Maybe your application is throwing and catching lots of exceptions? 也许你的应用程序正在抛出并捕获大量异常? This can really slow things down in debug mode. 这可以在调试模式下减慢速度。 Set the Exceptions properties to break on CLR exceptions and see if this is the case. 设置Exceptions属性以中断CLR异常并查看是否是这种情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM