• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 348
  • Last Modified:

Visual Studio: how to get stop debug to stop execution immediately

This has occurred with all Visual Studio versions, but I happen to be using 2012 now.

I will be stepping through in Debug mode and I notice the next line is going to do something I don't want. So I select to "stop debug."

I want it to stop execution immediately. However, every single time I select "stop debug" it totally runs through and executes every single thing and then quits.

So if I saw that it was going to create a record I didn't want, that record is still created. If it was going to delete the wrong thing, that deletion still occurs. Even if I select to stop debug before it executed that next line.

Is there a way to stop execution immediately so it doesn't continue to execute?

Starr Duskk
Starr Duskk
  • 2
2 Solutions
Johnny NewbeeCommented:
You hit the Stop button on the menu of vs?
Possible to paste portion of the codes that debugging?
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
Selecting Terminate All seems to be the answer.
Starr DuskkASP.NET VB.NET DeveloperAuthor Commented:
terminate all seems to do what I want.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now