调试变得非常慢......为什么以及如何解决这个问题? [英] Debugging has become really slow ... Why and how can I fix this?

查看:79
本文介绍了调试变得非常慢......为什么以及如何解决这个问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个为ASP.NET构建的项目,最近在调试模式下开始运行非常慢

(从一行开始需要大约10秒或更长的时间

代码到下一个)。


这刚刚开始,只影响一个ASP.NET项目。我有一些其他的ASP.NET项目,我可以通过调试器一步一步地使用

几乎是即时响应。我也有一些Windows Forms项目正常工作



我正在运行Visual Studio 2003并在Windows上使用VB作为我的语言

2000 Server(有Service Pack 3)和Sql Server 2000(有服务

包3)。


我添加了一个函数来创建一个我的Sql Server中的数据的Excel工作簿

在减速浮出水面的时候,但是我已经在项目中删除了这段代码和

Excel引用,但是这并没有改变减速

问题。


有没有人知道可能导致这种放缓的原因以及如何确定它的价值。谢谢,Dean

I have a project built for ASP.NET that recently started running really slow
in debug mode (it takes about 10 seconds or more to step from one line of
code to the next).

This just started recently and only impacts one ASP.NET project. I have
some other ASP.NET projects that I can step thru with the debugger with
almost instant response. I also have some Windows Forms projects that work
normally.

I am running Visual Studio 2003 and using VB as my language on a Windows
2000 Server (having Service Pack 3) with Sql Server 2000 (having Service
Pack 3).

I added a function to create an Excel workbook from data in my Sql Server
around the time the slowdown surfaced, but I have removed this code and the
Excel reference in the project, but this did not change the slowdown
problem.

Does anyone have any idea what could be causing this slowdown and how to
correct it ... Thanks, Dean

推荐答案

嗨Dean,


感谢您使用Microsoft MSDN托管新闻组。


很难给出这样一个性能问题的具体答案。

谢谢你的未成年人。在ASP.NET中,调试模式显着降低了

的性能。


根据我的研究和经验,以下aritcle对于
$ b非常有用你好吗?请仔细参考。


性能调优技巧
http://samples.gotdotnet.com/quickst...erftuning.aspx

" ...

任何编程模型都有其常见的性能缺陷,ASP.NET也不例外。本节介绍了一些可以避免代码中出现性能瓶颈的方法。

..."


我希望它有所帮助。


祝你好运,

Jacob Yang

Microsoft在线合作伙伴支持
安全! - www.microsoft.com/security

发布是按原样提供的。没有保证,也没有授予任何权利。

Hi Dean,

Thank you for using Microsoft MSDN managed newsgroup.

It is difficult to give a specific answer to such a performance issue.
Thank you for your undestanding. In ASP.NET, Debug mode degrades
performance significantly.

Based on my research and experience, the following aritcle is useful to
you. Please refer to it carefully.

Performance Tuning Tips
http://samples.gotdotnet.com/quickst...erftuning.aspx
"...
Any programming model has its common performance pitfalls, and ASP.NET is
no exception. This section describes some of the ways in which you can
avoid performance bottlenecks in your code.
..."

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


嗨Dean,


感谢您使用Microsoft MSDN管理的新闻组。


很难给出这样一个性能问题的具体答案。

谢谢你的未成年人。在ASP.NET中,调试模式显着降低了

的性能。


根据我的研究和经验,以下aritcle对于
$ b非常有用你好吗?请仔细参考。


性能调优技巧
http://samples.gotdotnet.com/quickst...erftuning.aspx

" ...

任何编程模型都有其常见的性能缺陷,ASP.NET也不例外。本节介绍了一些可以避免代码中出现性能瓶颈的方法。

..."


我希望它有所帮助。


祝你好运,

Jacob Yang

Microsoft在线合作伙伴支持
安全! - www.microsoft.com/security

发布是按原样提供的。没有保证,也没有授予任何权利。

Hi Dean,

Thank you for using Microsoft MSDN managed newsgroup.

It is difficult to give a specific answer to such a performance issue.
Thank you for your undestanding. In ASP.NET, Debug mode degrades
performance significantly.

Based on my research and experience, the following aritcle is useful to
you. Please refer to it carefully.

Performance Tuning Tips
http://samples.gotdotnet.com/quickst...erftuning.aspx
"...
Any programming model has its common performance pitfalls, and ASP.NET is
no exception. This section describes some of the ways in which you can
avoid performance bottlenecks in your code.
..."

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! ¨C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.


你好Jacob,


感谢您提供有关性能提示的文章。


浏览项目中的页面时,我的问题并没有降低性能。我的

问题是调试模式本身的性能。


我有几个ASP.NET项目,除了其中一个项目之外的所有项目,debug

模式允许我通过几乎即时响应逐步执行代码。但是,最近我的ASP.NET项目中有一个b
开始出现问题需要多长时间才能通过我的代码。我遇到的问题是,从一行代码转到另一行代码或从一个

断点移动到另一行代码,需要10秒钟才能获得
。直到最近,这个项目才能通过代码步骤或者从一个断点移动到另一个断点。


对于这个计算机系统上的其他项目,

通过代码执行这些项目或从一个断点移动到

另一个时,我没有任何延迟。


For在具有此调试性能问题的ASP.NET项目中,在正常浏览期间,对于访问此

项目中的各个页面,没有相应的性能更改。


我已经使用Visual Studio调试器好几年了,发现它是一个非常强大的工具,可以在调试代码时使用,但

当需要超过10秒来逐步执行每行代码或从一个断点移动到另一个断点时,调试过程几乎变得无用且非常令人沮丧。 />

我怀疑我对配置进行了一些更改或包含了me

与最近推出的受影响项目冲突的组件

这种调试模式性能问题只会影响这个项目

项目而不是其他人,但我一直无法弄清楚如何修复调试模式性能问题。


我希望能完全隔离我的内容已经做了介绍这个调试模式

性能问题,以便我可以避免在我工作的其他

项目中遇到同样的问题。


感谢您提供有关配置的任何建议或任何可能有助于解决此调试模式性能问题的其他提示。


谢谢,


Dean


" Jacob Yang [MSFT]" <ジ*** @ online.microsoft.com>在留言中写道

新闻:3L ************** @ cpmsftngxa06.phx.gbl ...
Hi Jacob,

Thank you for the article on performance tips.

My problem is not degraded performance when browsing pages in a project. My
problem is the performance of debug mode itself.

I have several ASP.NET projects and in all but one of these projects, debug
mode allows me to step thru my code with almost instant response. But, one
of my ASP.NET projects just recently started having a problem with how long
it takes to step thru my code. The problem I am having is that it takes
over 10 seconds to step from one line of code to another or to move from one
breakpoint to another. Until just recently, this project was able to step
thru code or move from one breakpoint to another almost instantly.

For other projects on this computer system, I do not have any delay when
stepping thru code for those projects or moving from one breakpoint to
another.

For the ASP.NET project having this debug performance issue, there has been
no corresponding performance change for access to various pages in this
project during normal browsing.

I have been using the Visual Studio debugger for several years and have
found it is an incredibly powerful tool for use when debugging code, but
when it takes over 10 seconds to step thru each line of code or move from
one breakpoint to another, the debugging process becomes almost useless and
very frustrating.

I suspect that I made some change to configuration or included some
conflicting components to the impacted project that has recently introduced
this debug mode performance problem in a way that is only impacting this one
project and not others, but I have not been able to figure out how to fix
the debug mode performance problem.

I am hoping to isolate exactly what I have done to introduce this debug mode
performance problem so that I can avoid having this same problem in other
projects I work on.

Thanks for any suggestions you can provide in regard to configuration or any
other tips that might help resolve this debug mode performance problem.

Thanks,

Dean

"Jacob Yang [MSFT]" <ji***@online.microsoft.com> wrote in message
news:3L**************@cpmsftngxa06.phx.gbl...
嗨Dean,

感谢您使用Microsoft MSDN托管新闻组。

很难对这样的性能问题给出具体的答案。
感谢您的支持。在ASP.NET中,调试模式显着降低了性能。

根据我的研究和经验,以下aritcle对你很有用。请仔细参考。

性能调优技巧
http://samples.gotdotnet.com/quickst...erftuning.aspx
" ...
任何编程模型都有其常见的性能缺陷,和ASP.NET也不例外。本节介绍了一些可以避免代码性能瓶颈的方法。
..

我希望它有所帮助。
致敬,

Jacob Yang
Microsoft在线合作伙伴支持
获得安全保障! (C www.microsoft.com/security
此帖子提供 ;没有保证,也没有权利。
Hi Dean,

Thank you for using Microsoft MSDN managed newsgroup.

It is difficult to give a specific answer to such a performance issue.
Thank you for your undestanding. In ASP.NET, Debug mode degrades
performance significantly.

Based on my research and experience, the following aritcle is useful to
you. Please refer to it carefully.

Performance Tuning Tips
http://samples.gotdotnet.com/quickst...erftuning.aspx
"...
Any programming model has its common performance pitfalls, and ASP.NET is
no exception. This section describes some of the ways in which you can
avoid performance bottlenecks in your code.
.."

I hope it helps.

Best regards,

Jacob Yang
Microsoft Online Partner Support
Get Secure! (C www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.



这篇关于调试变得非常慢......为什么以及如何解决这个问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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