Types of Code Changes
Edit and Continue applies to C/C++ programs only.
Edit and Continue does not handle some types of code changes. The following changes cannot be applied during a debugging session:
- Most changes to global or static data.
- Changes to executables that are copied from another machine and not built locally.
- Changes to a data type that affect the layout of an object (such as data members of a class).
- Adding more than 64k bytes of new code or data.
- Adding variables that require a constructor at a point before the instruction pointer.
- Changes that affect code that requires runtime initialization.
- Adding exception handlers, in some instances.
- Changes to resource files.
- Changes to code in read-only files.
- Changes to code with no corresponding PDB file.
- Changes to code that has no object file.
If you make one of these changes and then try to apply code changes, an error or warning message appears in the Output window.
Edit and Continue does not update static libraries. If you make a change in a static library, execution continues with the old version and no warning is issued.
For information on the limitations of Edit and Continue with Visual Basic and Visual C#, see Edit and Continue with Visual C# and Visual Basic.