How to Enable Edit and Continue execution in Visual Studio

In Visual Studio you are allowed to modify the code during debugging the code. It means that the developer is provided full freedom while debugging and that will increase productivity in the critical development phase.



In Visual Studio, such a feature is disabled by default. Whenever you try to modify the code during debugging, then Visual Studio displays the following error message

Enable Edit and Continue execution in Visual Studio
Here is the video that demonstrates 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 execution during run-time debugging.


1
In Visual Studio, navigate to menu Tools -> Options to open Visual Studio configuration window.


2
In Options window, navigate to Debugging group list and select Edit and Continue sub group item. In Edit and Continue screen, check (to enable) the Enable Edit and Continue option appeared at the right side.

Enable Edit and Continue execution in Visual Studio



3
Click on OK to save the changes. Now you are set to make the code change at run-time and execute the modified code.





– Article ends here –

If you have any questions, please feel free to share your questions or comments on the comment box below.

Recommended:   How to treat Warning as Error in Visual Studio during build - Part 2
Share this:
We will be happy to hear your thoughts

Leave a reply

Troubleshootyourself
Logo