Visual Studio 2013 中无法加载一个或多个断点错误
我的 Visual Studio 表现得很奇怪。 我的项目中没有断点,但每当我启动 Visual Studio 时,都会出现一条错误消息,显示它无法加载一个或多个断点。 其次,我的解决方案中有 10 个项目 - 我将一个项目设置为启动项目,但 Visual Studio 没有保存此信息。 每次打开解决方案时我都必须设置它。
My Visual Studio is behaving strangely. I have no breakpoints in my projects but whenever I start Visual Studio, an error message comes up showing that it's unable to load one or more breakpoints. Secondly, I have 10 projects in my solution - I set one as a startup project but Visual studio is not saving this information.
I have to set it every time I open the solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(11)
Ctrl+Shift+F9 来“删除所有断点”不起作用。
删除项目中非源代码的所有内容:“obj”和“bin”子目录,以及隐藏的“.vs”目录中的所有 *.user 和 *.suo。
Ctrl+Shift+F9 to 'Delete All Breakpoints' does not work.
Delete everything in your project which is not your source code: "obj" and "bin" sub-directories, all *.user and *.suo also from the hidden ".vs" directory.
删除 .suo 文件对我不起作用,删除 obj 文件夹也不起作用。 唯一有效的方法是删除隐藏的
.vs
文件夹中的所有内容(我首先将文件移到计算机上的其他位置,以确保在发生错误时可以将它们移回原处)Deleting
.suo
file did not work for me, neither did deletingobj
folder. Only thing that worked was deleting everything from hidden.vs
folder (I moved the files somewhere else on my machine first to make sure I could move them back in case of an error)我刚刚在使用 Visual Studio 2012 RC 时遇到了这个问题。 我通过设置任意断点然后在“调试”->“Windows”->“断点”窗口中删除它来修复它。
I just had this issue with Visual Studio 2012 RC. I fixed it by setting a arbitrary breakpoint and then deleting it in the Debug->Windows->Breakpoint window.
重新断点问题:你调试到汇编程序了吗? 您可能不小心在某些汇编指令上设置了断点。 查看断点列表(调试 -> Windows -> 断点;对我来说是 Alt+F9),看看为解决方案设置了哪些断点。 当然,源代码和二进制文件不匹配也可能导致这种情况。 或者,以下内容也可能有所帮助。
关于启动项目:Visual Studio 将与解决方案相关的所有用户特定数据保存在
*.suo
文件中,该文件放在*.sln
文件旁边。 这可能已经损坏(尽管我从未见过这个)。 尝试删除它,看看是否有帮助。再想一想,这两个问题可能是由某人签入位于隐藏的
.vs
目录中的*.suo
文件引起的。 你检查过这个吗?Re the breakpoint problem: Have you debugged into assembler? You might have accidentally set a breakpoint on some assembler instruction. Look into the breakpoint list (Debug->Windows->Breakpoints; it's Alt+F9 for me) to see which breakpoints are set for the solution. Of course, source and binary not matching might also cause this. Alternatively the following might help, too.
Re the startup project: Visual Studio saves all user-specific data regarding a solution in a
*.suo
file which it puts right beside the*.sln
file. This might have gotten corrupted (although I've never seen this). Try to delete it and see whether this helps.On a second thought, both problems might be caused by someone having checked in the
*.suo
file located in a hidden.vs
directory. Have you checked this?我也遇到了这样的问题,解决办法是删除解决方案目录下的*.suo文件。
I also encountered such a problem, the solutions is delete the *.suo file in the solution directory.
我尝试删除所有断点,但每次打开项目时都会出现此消息。
我在解决方案中找到了一个隐藏目录:“.vs”,
我将其重命名为其他目录并重新打开解决方案 - 消息消失了。
I tried to delete all breakpoints but every time I opened the project this message appeared.
I have found a hidden directory inside the solution: ".vs"
I renamed it to something else and re-opened the solution - the message disappeared.
只需删除“.vs”文件夹并重新加载解决方案
Just delete ".vs" folder and reload the solution
删除 *.suo 文件对我有用
Deleting *.suo file worked for me
我遇到了同样的问题,我从 BUILD>CLEAN SOLUTION 中清理了解决方案并重建了解决方案并解决了。
I had the same issue and I cleaned the solution from BUILD>CLEAN SOLUTION and rebuilt the solution and it resolved.
您能否向我们提供有关 Visual Studio 无法加载断点的更多信息? 如果将鼠标悬停在断点图标上,它应该提供一条工具提示消息,说明断点无法加载的原因。
最常见的原因是源文件和您正在调试的二进制文件之间不匹配。 例如,如果您按 F5 键并出现构建错误,则可能会发生这种情况。 或者在更改 DLL 的源代码后,针对已部署的 DLL 按 F5。 尝试重建并可能适当地重新部署,看看这是否可以帮助您解决问题。
至于启动信息。 尝试更新它,点击全部保存并重新启动 Visual Studio。 这应该确保信息被保存。
Can you give us more information on why Visual Studio can't load the break point? If you hover over the breakpoint icon it should provide a tooltip message saying why the breakpoint is unable to load.
The most common reason for this is a mismatch between the source file and the binary you are debugging. It can happen if you F5 with build errors for instance. Or F5 against a deployed DLL after you have changed the source for the DLL. Try rebuilding and potentially redeploying as appropriate and see if that helps your problem.
As for the startup information. Try updating it, hitting save all and restarting Visual Studio. That should ensure the information is saved.
可能有一个断点消失了(但如何消失?)。 请尝试使用 Ctrl+Shift+F9 来“删除所有断点”(VS2008)。
There may be an breakpoint that disappered (but how?). Please try Ctrl+Shift+F9 to 'Delete All Breakpoints' (VS2008).