Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Your app has entered a break state, but there is no code to show because all threads were executing external code (typically system or framework code)

Visual Studio 2017 breaks in debug mode and displays the message:

Your app has entered a break state, but there is no code to show because all threads were executing external code (typically system or framework code).

The message is in the Break Mode Window.

What to do?

like image 946
Gerard Avatar asked Oct 08 '17 18:10

Gerard


People also ask

How do you fix your app has entered a break state but there is no code to show because all threads were executing external code typically system or framework code?

First drag the Break Mode Window to the Call Stack Window to get an overview again. Then, check whether the Solution Explorer Window is in source mode.

How do I fix the application is in break mode?

Just check the box under "Break When Thrown" for all Common Language Runtime Exceptions. Once these exceptions are enabled, try debugging your project again. You should then be able to capture the underlying errors and work from there.

How do I turn off break mode in Visual Studio?

There is a free extension to resolve this issue: Disable No Source Available Tab available for from the VS Market Place. This small extension will prevent the tool window with title "No Source Available" from appearing in Visual Studio, and preserve the focus on the currently active tab.

How do I activate just my code?

To enable or disable Just My Code in Visual Studio, under Tools > Options (or Debug > Options) > Debugging > General, select or deselect Enable Just My Code.


2 Answers

Click on "Continue execution"

enter image description here

Then you will have the stacktrace in the output tab

enter image description here

like image 81
Led Machine Avatar answered Oct 07 '22 20:10

Led Machine


  1. First check all your common exception setting run time in your visual studio so that you can get the actual error.

enter image description here

  1. During loading you application check that is their any method which is throw new NotImplementedException();

In my case i use INavigationAware which was throw new NotImplementedException(); i just remove those

  1. In you all project update all from nuget.

  2. Clean and rebuild you project.

like image 31
Mohammad Atiour Islam Avatar answered Oct 07 '22 19:10

Mohammad Atiour Islam