How to Enable Edit and Continue execution in Visual Studio

Debugging Debugging Best Practices How to guide

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.

Enable Edit and Continue execution in Visual Studio
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.
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 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 –

Related Tags:

Software engineer by profession, founder of troubleshottyourself channel and enthusiastic blogger. Love to write articles on new technology, programming,

Share this: