Compartilhar via


C# Edit and Continue: Erro 4026

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.

Consulte também

Referência

Alterações de código suportadas (C#)

Edição e continuação (Visual C#)

Outros recursos

Editar e continuar a erros e avisos (C#)