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

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

问题描述

在我的 Visual Studio 实例中,即使我只是在 C# 控制台应用程序中写了一行返回,按下 F5 后我也需要一分钟才能执行实际代码(我的意思是按 F5 后在单个 return 语句上停止所需的时间——我在 main 函数中的 return 语句上设置了一个断点).怎么了?有核对清单吗?

In my Visual Studio instance, even if 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 the return statement in the main function). What is wrong? Is there a check list?

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

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

推荐答案

您可能需要删除所有断点---注意您需要单击删除所有断点"按钮(或使用 Ctrl + Shift + F9), NOT 一一删除即可.如果 Visual Studio 损坏了您的解决方案设置,后者将不起作用.您可能需要先添加一个断点,才能使其正常工作(聪明,嗯?).

You may need to delete all your breakpoints---note that you need to click the "Delete all breakpoints" button (or use Ctrl + Shift + 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?).

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

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天全站免登陆