的Visual Studio 2012 / C#符代码执行,没有断点集 [英] Visual Studio 2012/C# breaks code execution, no breakpoint set

查看:264
本文介绍了的Visual Studio 2012 / C#符代码执行,没有断点集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在其中快把我逼疯了的Visual Studio 2012 / C#的一个问题。我的代码在没有断点设置一个C#文件中的特定行。就像一个断点设置每到这个线应该在调试器执行的时间中断我的代码的执行。我注意到,唯一的区别是在左手侧的箭头,表示当前步骤。通常这箭是黄色(当一个断点设置)。在我的情况下,它是灰色的。

I'm having a problem in Visual Studio 2012/C# which is driving me crazy. I have a particular line of code in a C# file with NO breakpoint set. Every time this line should be executed the debugger interrupts the execution of my code like a breakpoint was set. The only difference i noticed is the arrow on the left hand side, indicating the current step. Usually this arrow is yellow (when a breakpoint is set). In my case it is grey.

我一直在寻找一个解决方案,但没有发现任何有用的这个。我尝试删除所有断点,建设项目,改造项目,清洁工程,它仍然会出现。

I have been searching for a solution but did not find anything useful to this. I tried deleting all breakpoints, build project, rebuild project, clean project and it still appears.

有没有人有同样的问题,并找到了解决这个

Does anyone have the same problems and found a solution this?

正常的箭头:

normal arrow:

在我的情况下箭头:

arrow in my case:

推荐答案

这行代码正在执行,它会调用别的东西,例如:本机代码或.NET内部代码和异常情况出现。您可以在调用堆栈窗口中看到两个箭头:

This line of code is currently executing, it calls something else, e.g. native code or .NET internal code and an exception happens there. You can see both arrows in the call stack window:

也许你需要打开显示外部代码

Perhaps you need to turn on "Show external code".

如果你不能看到异常对话框,通常你可以显示它是这样的:

If you can't see the exception dialog, usually you can show it like this:

这篇关于的Visual Studio 2012 / C#符代码执行,没有断点集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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