In Visual Studio you are allowed to modify the code during run time. While debugging you can change the code or you can add the new code and continue debugging. This is kind of a flexible environment where developer is provided full freedom while debugging and that will increases the productivity in critical development phase.
In Visual studio such feature is disabled by default. Whenever you try to modify the code during debugging, then Visual Studio display the following error message.
Here is the video that demonstrate how this error message appeared while debugging the modified code at run-time.
Enable Edit and Continue execution in Visual Studio:
Follow the below steps to allow code edit and execute during run-time debugging.
– Article ends here –