在 Visual Studio 中编辑代码并继续调试(C#、VB、C++)Edit code and continue Debugging in Visual Studio (C#, VB, C++)

“编辑并继续”是一种省时的功能,使你能够在程序处于中断模式时更改源代码。Edit and Continue is a time-saving feature that enables you to make changes to your source code while your program is in break mode. 当你通过选择一条类似“继续”或“单步执行”的执行命令继续执行程序时,“编辑并继续”会有限制地自动应用代码更改 。When you resume execution of the program by choosing an execution command like Continue or Step, Edit and Continue automatically applies the code changes with some limitations. 这允许你在调试会话期间更改代码,而不是停止程序,重新编译整个程序,再重新启动调试会话。This allows you to make changes to your code during a debugging session, instead of having to stop, recompile your entire program, and restart the debugging session.

本节包括下列主题:This section includes the following topics:

如何:启用和禁用“编辑并继续”How to: Enable and Disable Edit and Continue

如何:停止代码更改How to: Stop Code Changes

编辑并继续 (C++)Edit and Continue (C++)

编辑并继续 (Visual C#)Edit and Continue (Visual C#)

编辑并继续 (Visual Basic)Edit and Continue (Visual Basic)

F# 不支持“编辑并继续”Edit and Continue Not Supported for F#

请参阅See also