Partager via


Edit and Continue (Visual C#)

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

With Edit and Continue for C#, you can make changes to your code in break mode while debugging. The changes can be applied without having to stop and restart the debugging session. In run mode, the source editor is read-only.

Edit and Continue supports most changes you might want to make during a debugging session, but there are some exceptions. For more information, see Supported Code Changes (C# and Visual Basic).

Edit and Continue is supported in UWP in Windows 10 or later, and x86 and x64 apps that target the .NET Framework 4.6 desktop or later versions (the .NET Framework is a desktop version only).

Note

Unsupported apps and platforms include Silverlight 5, and Windows 8.1.

When Edit and Continue is enabled, supported changes are applied automatically when you use a debugger execution command, such as Continue, Step, Set Next Statement, or perform a function evaluation in a debugger window.

For more information, see How to: Use Edit and Continue (C#).

See also