Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Debugging is being stopped" but is not yet complete

All of a sudden, my Visual Studio has begun to popup a message every time I want to break my ASP.net project.

"Debugging is being stopped but is not yet complete" dialog message.

How can I get rid of this dialog?

There is nothing to complete, only a debug session to get rid of. Clicking the "Stop Now" button will not immediately stop the execution, but wait some seconds.

From what I know, I have not changed any configuration to get this dialog.

like image 709
Anders Lindén Avatar asked Aug 08 '16 11:08

Anders Lindén


People also ask

How do I exit debugging?

To terminate all debugging sessions, right-click in the Debug view and choose Terminate All from the pop-up menu.

How do I force stop debugging in Visual Studio?

To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.

How do I enable debugging in Visual Studio?

In the Visual Studio toolbar, make sure the configuration is set to Debug. To start debugging, select the profile name in the toolbar, such as <project profile name>, IIS Express, or <IIS profile name> in the toolbar, select Start Debugging from the Debug menu, or press F5.

How do I fix the Debug executable in Visual Studio?

Just use File/Open Project/Solution, select EXE file and Open it. Then select Debug/Start debugging. The other option is to run the EXE first and then Select Debug/Attach to process.


1 Answers

Deleting all breakpoints (Menu > Debug > Delete All Breakpoints) and running in Debug mode fixed it. Unfortunately, nothing else did it for me. I had to again set the breakpoints that I wanted.

Alternatively, you can choose to work around this problem by choosing the Menu > Debug > Terminate All option instead of clicking the Stop Debugging (Shift + F5) button.

Microsoft announced that they have fixed it in the new release of VS 2017, per this link:

like image 195
Ram Iyer Avatar answered Oct 20 '22 07:10

Ram Iyer