I am able to edit my code in debug mode but then pop up shows the error that \"Edits were made which cannot be compiled. Execution cannot continue until the compile errors a
I had the same problem (VS2017), for me it was enough to menu item Build and click Clean Solution
Then Rebuild Solution and everything worked fine again.