简体   繁体   中英

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.

Recently, we upgraded to Visual Studio 2012 Premium (from 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).

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. But, when we access the application straight to the local IIS and without using the VS2012 debugger, it runs great. Something about debugging in Visual Studio 2012 on our application is slowing down our application performance significantly.

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. All 64 bit with 8+ GB of RAM, and Intel Core i7 processors.

Thanks for any help.

My debug on VS 2012 was very slow, it was taking 20~30 seconds for every step.

My solution was disable the .NET Reflector extension.

Go to Tools - Extensions and Updates - Disable .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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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