This documentation is archived and is not being maintained.

Enabling and Disabling Automatic Invocation of Edit and Continue

Edit and Continue applies to C/C++ programs only.

If you prefer, you can disable the automatic invocation of Edit and Continue by Go and Step commands. You might do this if you are making edits to the code that you do not want applied during the current debugging session.

To enable/disable automatic invocation of Edit and Continue

  1. From the Tools menu, click Options.
  2. In the Options dialog box, select the Debugging folder.
  3. In the Edit and Continue group, select or clear the Invoked by debug commands check box.
    Note   You also have the option of having the debugger ask you before applying code changes prior to a debug command. If you want to be asked, select the Ask me first check box.
  4. Click OK.

Because Invoked by debug commands is a tools option, altering this setting affects all projects you work on. You do not need to rebuild your application after changing this setting. You can change the setting even while debugging. If you build your application from the command line or from a makefile but debug in the Visual C++ environment, you can still use Edit and Continue if you set the /ZI option.

Caution   Do not enable Edit and Continue (/ZI) if you are debugging optimized code. Edit and Continue is incompatible with compiler optimizations. The result is a compiler error.

See Also

Edit and Continue | Edit and Continue, Debugging, Options Dialog Box

Show: