在Visual Studio缓慢的调试问题(Slow debugging issue in Visual Studio)

编程入门 行业动态 更新时间:2024-10-22 11:22:01
在Visual Studio缓慢的调试问题(Slow debugging issue in Visual Studio)

在我的Visual Studio中,即使我只是在C#控制台应用程序中写了一行返回行,所以在按F5执行实际代码之后,我需要一分钟的时间(我的意思是在按下之后停止单个返回语句所需的时间F5 - 在Main函数中的return语句上设置一个断点)。 我想知道有什么问题吗? 任何检查清单? 谢谢!

我在Windows Server 2003 x64上使用Visual Studio 2008 VSTS版本和调试。

提前感谢乔治

In my Visual Studio, even I just wrote a single line of return in a C# console application, it will take me a minute after pressing F5 to execute the actual code (I mean the time it takes to stop on the single return statement after pressing F5 -- I set a breakpoint on return statement in Main function). I am wondering what is wrong? Any check list? Thanks!

I am using Visual Studio 2008 VSTS edition and debugging on Windows Server 2003 x64.

thanks in advance, George

最满意答案

您可能需要删除所有断点---请注意,您需要单击“删除所有断点”按钮(或使用Ctrl-Shft-F9),而不是逐个删除它们。 如果Visual Studio已经破坏了您的解决方案设置,后者将无法正常工作。 您可能需要先添加一个断点,以使其工作(聪明,嗯?)。

如果最坏的情况.suo最坏,您可能需要删除.suo文件,让Visual Studio从头开始新的。 请注意,您将丢失个人解决方案配置设置(仅适用于此解决方案,而不是任何其他设置)。 但是,您可能希望暂时移动/重命名文件,直到您确定是否存在问题; 那样,你总是可以把它移回去。 我看到一些在线资源建议删除(移动/重命名) .ncb文件。

You may need to delete all your breakpoints---note that you need to click the "delete all breakpoints" button (or use Ctrl-Shft-F9), NOT just delete them one by one. If Visual Studio has mangled your solution settings the latter will not work. You may need to add a breakpoint first, in order for this to work (clever, eh?).

If worst comes to worst, you may need to delete your .suo file and let Visual Studio start a new one from scratch. Note that you will lose your personal solution configuration settings, however (only for this solution, not any others). However, you may want to move/rename the file temporarily until you determine whether or not this is the problem; that way, you can always move it back. I have seen some online resources recommend deleting (moving/renaming) the .ncb file as well.

更多推荐

本文发布于:2023-08-03 16:20:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1393573.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:缓慢   Studio   Visual   issue   debugging

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!