Edit and Continue (Visual Basic) 

This topic applies to:

Visual Studio Edition

Visual Basic

C#

C++

J#

Express

Yes

No

No

No

Standard

Yes

No

No

No

Pro/Team

Yes

No

No

No

Edit and Continue is a feature for Visual Basic debugging that enables you to make changes to 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 observe 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 make changes to declaration statements, such as public methods, public fields, or class declarations.

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

Edit and Continue is not supported when you start debugging using Attach to Process. Edit and Continue is not supported for mixed-mode, combined managed and native, debugging, SQL debugging, debugging on Windows 98, or 64-bit debugging.

If you are debugging a 64-bit application and want to use Edit and Continue, you must change the target platform and compile the application as a 32-bit application. You can change this setting by opening the Project Properties and going to the Compile page. On that page, click the Advanced Compile Options button and change the Target CPU setting to x86 in the Advanced Compiler Settings dialog box.

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

In This Section