在我的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.
更多推荐
发布评论