应用程序处于中断模式.您的应用已进入中断状态, [英] The application is in break mode. your app has entered a break state,

查看:41
本文介绍了应用程序处于中断模式.您的应用已进入中断状态,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现自己遇到了与这里相同的问题,我是在 dll 中使用 Windows 窗体(这是用于 Autocad 插件)并且我无法调试我的代码,因为我收到应用程序处于中断模式.您的应用程序已进入中断状态,但当前没有执行支持的代码由选定的调试引擎".我已经尝试了此列表中的所有建议,但没有一个对我有用.一件奇怪的事情是,我可以中断构造函数,但使用控制器/配置对象的事件会获取该页面.

I found myself in this same problem than here, I'm using windows forms in a dll (this is for an Autocad plug-in) and I cannot debug my code because I receive "The application is in break mode. your app has entered a break state, but no code is currently executing that is supported by the selected debug engine". I have tried every recommendation in this list and none worked for me. One odd thing was that I can break in the constructor but the events that use a controller/config object get that page.

知道为什么会发生这种情况吗?

Any ideas why this may be happening?

提前致谢

推荐答案

就我而言,我在调用 MVC API 端点时收到了同样的消息,并且还抛出了堆栈溢出异常.原因是使用支持字段编写的外部 dll 中的对象属性.属性的 set 访问器被意外写入来设置属性而不是导致无限循环的支持字段,因此堆栈溢出异常.请注意 setter 中缺少的下划线.

In my case, I was receiving this same message when calling an MVC API endpoint, and it was also throwing a stack overflow exception. The cause was an object property in an external dll which was written with a backing field. The set accessor of the property was accidentally written to set the property and not the backing field which caused an infinite loop, hence the stack overflow exception. Note the missing underscore in the setter.

private string _Prefix;
public string Prefix
{
   get { return _Prefix; }
   set { Prefix = value; }
}

尽管您的问题可能与我的不完全一样,但在外部 dll 中也发生了类似的情况.

Though your issue may not be exactly as mine, something similar is occurring in an external dll.

这篇关于应用程序处于中断模式.您的应用已进入中断状态,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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