SmRndGuy
SmRndGuy

Reputation: 1819

Why isn't Visual Studio automatically closing the program when error occurs?

When I get a run-time error, VS normally points me to the line where error occurred.
But I cannot edit anything until the program closes. And VS doesn't close it for me.
Instead I have to manually end it in Task Manager (What I have been doing so far)

Now, there must be a more convenient way of closing to program, and getting back to work,
without the use of Task Manager to do it.
How?

Upvotes: 0

Views: 1041

Answers (4)

yumaikas
yumaikas

Reputation: 979

There are a couple of things that you can do to end the program. One common keyboard shortcut is Shift-F5 (stop debugging).

The other is the Stop Debugging button on the VS debugging toolbar.

Upvotes: 4

user180326
user180326

Reputation:

There's a stop button (green square) on the debug toolbar. That will halt your program (in 99% of time).

The reason it is not stopped automatically, is to allow inspection of your failed program state. But that kind of speaks for itself.

Edit: (oh, sorry it's blue as Rahul's screencapture points out)

Upvotes: 3

Rahul Tripathi
Rahul Tripathi

Reputation: 172588

There is stop button in Visual Studio.

enter image description here

Upvotes: 4

dtb
dtb

Reputation: 217371

There's a Stop button in the VS toolbar:

Stop button

Upvotes: 1

Related Questions