Export (0) Print
Expand All

Edit and Continue with Visual C# and Visual Basic

Visual Studio .NET does not support Edit and Continue for Visual Basic or C# code. If you try to edit code and continue debugging in Visual Basic or C#, one of four things will happen, depending on the settings selected in the Edit and Continue page of the Options dialog box:

  • When you try editing, the title bar flashes and displays the text, "Currently cannot modify this text in the editor. It is read only."
  • The editor allows you to make changes, and the debugger continues execution of the old code (without the changes).
  • The editor allows you to make changes, and the debugger stops execution of your program, builds a fresh copy of the program with the changes, and restarts execution.
  • The editor allows you to make changes, but when you try to continue or step the Unable to Apply Code Changes dialog box appears. This dialog box gives you the chance to choose between continuing execution with the old code, restarting execution, or canceling the Continue or Step command.

The default behavior depends on the Visual Studio languages you have installed. By default, Visual Basic users cannot edit code while debugging. Visual C# users can edit code while debugging but get the Unable to Apply Code Changes dialog box by default.

See Also

Unable to Apply Code Changes Dialog Box | Limitations of Edit and Continue | Edit and Continue | Edit and Continue, Debugging, Options Dialog Box

Show:
© 2015 Microsoft