Export (0) Print
Expand All

Edit and Continue (Visual Basic)

Edit and Continue is a feature for Visual Basic debugging that enables you to change your code while it is executing in Break mode. After code edits have been applied, you can resume code execution with the new edits in place and see the effect.

You can use the Edit and Continue feature whenever you enter Break mode. In Break mode, the instruction pointer, a yellow arrowhead in the source window, points to the line that will be executed next, and will be located on an executable statement within a method or property body. You can make almost any kind of change to executable statements while in Break mode, and the change will be incorporated into the underlying project. While in Break mode, however, you are generally not allowed to change declaration statements, such as public methods, public fields, or class declarations.

When you make an unauthorized edit, the change is marked with a purple wavy underline and a task is displayed in the Task List. You must undo an unauthorized edit if you want to continue to use Edit and Continue. Certain unauthorized edits may be permitted if done outside Edit and Continue. If you want to retain the results of such an unauthorized edit, you must stop debugging and restart your application.

Edit and Continue is supported for 64-bit projects that target the .NET Framework 4.5.1.

Edit and Continue is not supported when you start debugging using Attach to Process. Edit and Continue is not supported for optimized code, mixed managed and native code, or Compact Framework (Smart Device) projects.

The topics in this section provide additional details about how to use this feature and what kinds of changes are not allowed.

How to: Apply Edits in Break Mode with Edit and Continue

Explains how to apply code edits in Break mode.

Unsupported Edits in Visual Basic Edit and Continue

Describes what types of edits cannot be performed in Visual Basic Edit and Continue.

Edit and Continue

Provides a list of topics on Edit and Continue.

Show:
© 2014 Microsoft