Link to home
Start Free TrialLog in
Avatar of Starr Duskk
Starr DuskkFlag for United States of America

asked on

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?

thanks.
SOLUTION
Avatar of Johnny Newbee
Johnny Newbee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Starr Duskk

ASKER

terminate all seems to do what I want.