C#VS2010进入休息模式失败 [英] C# VS2010 Entering break mode failed

查看:396
本文介绍了C#VS2010进入休息模式失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是有一些问题,我的断点后来在我的计划说,他们将不会被击中,因为源$ C ​​$ c和编译code是不同的。我决定把我的公共主窗口()函数的一个破发点,看看发生了什么。

I was having some problems with my breakpoints later in my program saying that they would not be hit because the source code and the compiled code was different. I decided to put a break point on my public MainWindow() function, and see what happened.

现在我得到的错误是进入休息模式失败,原因如下:源文件F:\ cAdmin \ OO \ OO \ MainWindow.xaml.cs'。不属于该项目正在调试

Now I get the error that Entering break mode failed for the following reason: Source file 'F:\cAdmin\OO\OO\MainWindow.xaml.cs' does not belong to the project being debugged.

我觉得这很有趣,因为我的项目存储在我的闪存驱动器(L :)而不是F :.

I find this funny because my project is stored on my flash drive (L:) and not F:.

我已经重建我的项目并清除它(多次),重新启动我的电脑,我的移动闪存驱动器,和其他任何我能想到的。

I have rebuilt my project and cleaned it (many times), restarted my computer, moved my Flash drive, and anything else that I can think of.

推荐答案

删除解决方案用户选项(名为.suo)文件。

Delete the solution user options (.suo) file.

如果您遇到搞笑调试问题,这通常意味着锁文件已损坏。

If you experience "funny" debugging issues, it usually means the suo file is corrupt.

删除解决方案,锁文件。这每一次的固定怪异的调试问题,断点我。请注意,你将失去你的解决方案的设置,如书签,断点,这样的。

Delete the solutions suo file. This has fixed weird debugging problems with breakpoints every time for me. Note, you will lose your solution settings, such as bookmarks, breakpoints, and such.

请参阅<一href="http://stackoverflow.com/questions/2986646/visual-studio-2008-the-breakpoint-cannot-be-hit/2986668#2986668">Visual Studio 2008中 - 断点不能打

这篇关于C#VS2010进入休息模式失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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