Visual Studio "The Application is in break mode" when debugging Revit Addin

Visual Studio "The Application is in break mode" when debugging Revit Addin

Mohamed.Elmasri
Contributor Contributor
4,340 Views
4 Replies
Message 1 of 5

Visual Studio "The Application is in break mode" when debugging Revit Addin

Mohamed.Elmasri
Contributor
Contributor

Hi everyone,

Visual Studio shows "The Application is in break mode" when debugging Revit Addin

 

Annotation 2020-03-30 053503.png

 

The Revit Interface

 

Annotation 2020-03-30 053553.png

 

I used "Revit Addin Wizard 2019" .. Itested the project on another PC ,, It works well

but on my PC it shows the error above !

 

I cannot debug anything 😥

 

Thanks in advance !

 

0 Likes
4,341 Views
4 Replies
Replies (4)
Message 2 of 5

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Mohamed.Elmasri ,

 

In Visual Studio,

Go to Debug-->Windows-->Exception Settings-->Managed Debugging assistants-->ContextSwitchDeadlock(Uncheck ContextSwitchDeadlock).

 

I hope this will help you to solve your issue.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 5

Mohamed.Elmasri
Contributor
Contributor

Thanks very very much for reply 

 

the message in the post .. disappear

 

but when I debug with breakpoint 

 

Annotation 2020-03-30 074149.png

 

and Revit still at that view

 

Annotation 2020-03-30 053553.png

 

 

0 Likes
Message 4 of 5

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @Mohamed.Elmasri ,

I think the problem is related to Visual studio and not related to Revit.

Simple google search gave me these below links

https://stackoverflow.com/questions/36445717/vs2015-the-breakpoint-will-not-currently-be-hit-no-symb... 

 

https://stackoverflow.com/questions/2155930/how-do-i-remedy-the-the-breakpoint-will-not-currently-be... 

 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 5 of 5

Kennan.Chen
Advocate
Advocate

Can you post some of your code? I think there must be some bad code which causes the dead lock.

0 Likes