Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The application is in break mode. your app has entered a break state,

Tags:

c#

.net

dll

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?

thanks in advance

like image 718
user3223834 Avatar asked Jan 19 '26 18:01

user3223834


2 Answers

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; }
}

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

like image 60
Hoodlum Avatar answered Jan 21 '26 06:01

Hoodlum


Restarting visual studio solve this for me.

like image 23
Ellix4u Avatar answered Jan 21 '26 08:01

Ellix4u



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!