visual-studio Visual Studio 2010:Web 应用程序调试速度非常慢!
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2707977/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Visual Studio 2010: very slow web applications debugging!
提问by Mikhail Glukhov
I recently installed Visual Studio 2010(Ultimate edition, final version released in April), and found that debugging a web applicationbecame very slow(2-3 times slower than in Visual Studio 2008)!
我最近安装了Visual Studio 2010(终极版,4月发布的最终版),发现调试web应用程序变得非常慢(比Visual Studio 2008慢2-3倍)!
I took the same web application and checked the speed of loading of one of its pages in VS 2008 and VS 2010, and compared the time it takes to load the page.
我使用相同的 Web 应用程序并检查了其中一个页面在 VS 2008 和 VS 2010 中的加载速度,并比较了加载页面所需的时间。
I tested it using 2 approaches: 1) debugging under ASP.NET Development Server (by pressing the "Start" button) and 2) using ASP.NET Development Server without debugging (by using the "View in Browser" menu command).
我使用 2 种方法对其进行了测试:1) 在 ASP.NET 开发服务器下调试(通过按“开始”按钮)和 2)使用 ASP.NET 开发服务器而不进行调试(通过使用“在浏览器中查看”菜单命令)。
And I got the following resultsfor Visual Studio 2008 and 2010.
我得到了Visual Studio 2008 和 2010的以下结果。
1)ASP.NET Development Server withoud debugging ("View in Browser"): the speed of page loading is the samein VS 2008 and 2010.
1)ASP.NET Development Server withoutoud debugging(“在浏览器中查看”):页面加载速度在 VS 2008 和 2010 中相同。
2)Debugging under ASP.NET Development Server ("Start" button): in VS 2010 the page takes more time to load than in VS 2008 - VS 2010 debugging is 2-3 times slowerthan in VS 2008!
2)在 ASP.NET 开发服务器下调试(“开始”按钮):在 VS 2010 中,页面加载时间比在 VS 2008 中要多 - VS 2010 调试比在 VS 2008 中慢 2-3 倍!
3)At the same time, when debugging a web application in VS 2008, it takes the same time to load the page compared to when using only the "View in Browser" command. That is, VS 2008 debuggingdoes notintroduce any overheadto page loading in the web browser!
3)同时,在 VS 2008 中调试 Web 应用程序时,与仅使用“在浏览器中查看”命令相比,加载页面所需的时间相同。也就是说,VS 2008调试并没有引入任何开销到页面加载的网页浏览器!
I wanted to make sure that other people have the same problem with slow debugging of web applications in VS 2010. Can this issue be solved by any means?
我想确保其他人也有同样的问题,在 VS 2010 中调试 web 应用程序很慢。这个问题可以通过任何方式解决吗?
BTW, I am using Windows XP SP3.
顺便说一句,我使用的是 Windows XP SP3。
Thank you.
谢谢你。
回答by Dror Helper
Disable Intellitrace (historical debugger) - it enable jumping "back in time" during debug but it slows down debugging.
禁用 Intellitrace(历史调试器) - 它可以在调试期间“及时跳转”,但会减慢调试速度。
You can disable it from the options->intellitrace
您可以从 options->intellitrace 中禁用它
回答by swax
Try 'Delete all breakpoints' from the Debug menu. It sped up my web application debugging by 10 times.
尝试从“调试”菜单中“删除所有断点”。它使我的 Web 应用程序调试速度提高了 10 倍。
回答by Paulius Zaliaduonis
I had problems with slow Visual Studio debugging when "Native Code" debuggerwas enabled. Try disabling it.
启用“本机代码”调试器时,我遇到了缓慢的 Visual Studio 调试问题。尝试禁用它。
On "Visual Studio 2010" go to:
在“Visual Studio 2010”上转到:
- Project Properties ->
- Web ->
- Debuggers (bottom of page). ->
- Disable all exept ASP.NET
- 项目属性 ->
- 网页 ->
- 调试器(页面底部)。->
- 禁用所有例外 ASP.NET
Hope it helps.
希望能帮助到你。
Similar question: 1
类似问题:1
回答by Tino Mclaren
After incredibly slow debugging for months I finally discovered the cause (even after disabling intellitrace).
经过几个月令人难以置信的缓慢调试后,我终于发现了原因(即使在禁用了智能跟踪之后)。
It turned out to be PC Tools internet security -> IntelliGuard -> 'Behaviour Guard'
原来是PC Tools internet security -> IntelliGuard -> 'Behaviour Guard'
This is a hips like protection system that monitors the 'signature' of system operations
这是一个类似臀部的保护系统,可以监控系统操作的“签名”
I disabled this feature and wow what a speed difference - 'stepping into' lines of code in debug now has almost zero delay. I re-enabled Intellitrace and can use it with only a very slight speed hit.
我禁用了这个功能,哇,这是多么的速度差异 - 现在调试中的“步入”代码行几乎为零延迟。我重新启用了 Intellitrace 并且可以以非常轻微的速度使用它。
Tino
蒂诺
回答by CarlosAz
I tried a lot of things and the only way to solve it was the swax solution 'Delete all breakpoints'
我尝试了很多东西,解决它的唯一方法是蜡解决方案“删除所有断点”
回答by aero
I had this problem as well and it turned out to be due to sybmbols. Go to Tools > Options > Debugging > Symbols and uncheck any symbol servers
我也有这个问题,结果是由于符号。转到工具>选项>调试>符号并取消选中任何符号服务器
回答by gil adino
回答by Doan Huynh
I can get it faster by clear all break points, all unnecessary variable in Watch windows, and all the unnecessary debug windows, such as CallStack ...
我可以通过清除所有断点、监视窗口中所有不必要的变量以及所有不必要的调试窗口(例如 CallStack ...
回答by Helbok Herman
I did find out what you have to do:
我确实发现了你必须做的事情:
- Disable Intellisense
- Disable the Graphics Rendering Editor Function, this causes editor slowness with some graphics cards.
- Disable the Sourcecontrol that is set by default to the Microsoft Server Product.
- 禁用智能感知
- 禁用图形渲染编辑器功能,这会导致某些图形卡的编辑器变慢。
- 禁用默认设置为 Microsoft 服务器产品的源控件。
I just can tell you, that VS2010 is a very good product, if you know these few things, and setup this.
我只能告诉你,VS2010 是一个非常好的产品,如果你知道这几件事,并设置它。
回答by chanva
You can uncheck the Symbols servers.
您可以取消选中符号服务器。

