Is there a way to enable file editing while debugging in Visual Studio? I have unchecked the \"Require the source file to exactly match the original version\" checkbox. It m
I have tried this way and its Working for me. Go TO CSProj Or VbProj File -> Choose Asp.Net Development Server/ IIS Express ->Debuggers->Enable Edit and Continue->Save and Run.
Expanding on Reed's correct answer.
When in debug mode editing a file is using a feature known as Edit and Continue (commonly abbreviated ENC). This allows users to change their program as it is running in the debugger.
When ENC is enabled, users are allowed to perform a limited set of edits on their file. The next action which continues execution of the program (F10, F5, etc ...) will cause the edits to be applied to the running program. If this succeeds the execution of the program will continue with the new code applied.
The debugger does not allow edits to the file if ENC is not enabled.
There are a few reasons ENC may be disabled on your computer
From MSDN
To enable/disable Edit and Continue
Open debugging options page (Tools / Options / Debugging). Scroll
down to Edit and Continue category. To enable, select the Enable Edit
and Continue check box. To disable, clear the check box. Note. ...
Click OK.
For me this link Disabling IntelliTrace worked.
Go to
Tools > Options > IntelliTrace > (uncheck) Enable IntelliTrace
Or Debug > Options > IntelliTrace > (uncheck) Enable IntelliTrace
usually editing a file during debugging is possible when you have hit a breakpoint (and only then).
There are some restrictions though: -your new code must compile -you cant change code in a function that contains lambda expressions