Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automatically stop debugging when starting to edit code?

I am working on an ASP.NET project. When I am debugging, I often want to switch back from my browser to Visual Studio (2008) and edit some code. Visual Studio then won't let me edit the code, unless I explicitly quit debugging first.

Is there any way to configure Visual Studio such that is automatically stops debugging and allow me to edit the code, or do I have to stop it manually each and every time?

Disabling Edit and Continue does allow me to edit the code, but this does not force VS to stop debugging...

like image 488
Daan Avatar asked Feb 25 '10 08:02

Daan


1 Answers

A work around, that will allow you to edit your code while debugging
In case vs 2012
go to Tools -> Debugging -> Edit and Continue uncheck Enable Edit and Continue, and don't forget to rebuild/redebug after editing enter image description here

like image 195
john-salib Avatar answered Dec 08 '22 14:12

john-salib