在Visual Studio中缓慢调试问题 [英] Slow debugging issue in Visual Studio

查看:133
本文介绍了在Visual Studio中缓慢调试问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



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



感谢提前,
George

解决方案

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



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


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

解决方案

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.

这篇关于在Visual Studio中缓慢调试问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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