|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
How to: Enable and Disable Automatic Invocation of Edit and Continue
This topic applies to:
Pro and Team
Does not apply
Command or commands hidden by default.
You can disable the automatic invocation of Edit and Continue (invocation by the Continue, 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. You can also re-enable the automatic invocation of Edit and Continue.
To enable or disable automatic invocation of Edit and Continue
From the Tools menu, click Options.
In the Options dialog box, open the Debugging node, and select the Edit and Continue category.
In the Edit and Continue group, select or clear the Invoked by debug commands check box.
You can also have 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.
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.