Share via


C# Edit and Continue: error 4026 

Error Message

An active statement has been removed from its original method. You must revert your changes to continue or restart the debugging session

This error indicates that you have moved the active statement to a different method, probably by editing the code around the statement. Edit and Continue does not support changes to the active statement while debugging. You can undo the change, or restart the debugging session. For more information, see Active Statements.

To undo code changes

  • On the Edit menu, click Undo.

To apply the code changes

  • On the Debug menu, click Stop Debugging, then make your changes, and start a new debugging session.

See Also

Reference

Supported Code Changes (C#)
Edit and Continue (Visual C#)

Other Resources

Edit and Continue Errors and Warnings (C#)