You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: "Edit and Continue Error Message Dialog Box | Microsoft Docs"
2
+
title: "Edit and Continue error message dialog box| Microsoft Docs"
3
3
ms.custom: ""
4
-
ms.date: "06/22/2017"
4
+
ms.date: "06/22/2018"
5
5
ms.technology: "vs-ide-debug"
6
6
ms.topic: "reference"
7
7
f1_keywords:
@@ -21,39 +21,27 @@ manager: douge
21
21
ms.workload:
22
22
- "multiple"
23
23
---
24
-
# Edit and Continue Error Message Dialog Box
25
-
This dialog box appears when you are debugging in a language that supports Edit and Continue, but **Edit and Continue** is not available for the type of code changes you have made. The error message inside the box provides a more detailed explanation. Possible reasons for seeing this dialog box include:
24
+
# Edit and Continue error message
26
25
27
-
- You tried to edit SQL Server code.
26
+
The **Edit and Continue** error message box appears when you're debugging in a code language that supports Edit and Continue, but Edit and Continue isn't available for the code changes you've made. The error message provides a more detailed explanation. To respond to the dialog, select **OK** to close the dialog box and cancel the edit attempt.
28
27
29
-
- You tried to edit optimized code. (You may need to switch from a release build to a debug build.)
28
+
Possible reasons for this error message include:
30
29
31
-
- You tried to edit code while it was running (instead of while paused in the debugger). Try [setting a breakpoint](../debugger/using-breakpoints.md) and editing code while paused.
32
-
33
-
- You tried to edit managed code when unmanaged debugging was enabled. Edit and Continue does not work with [mixed-mode debugging](../debugger/how-to-debug-in-mixed-mode.md).
34
-
35
-
- You made a code change that is not supported by Edit and Continue in your programming language. For more info, see topics for unsupported code changes in [C#](../debugger/supported-code-changes-csharp.md), [Visual Basic](../debugger/unsupported-edits-in-visual-basic-edit-and-continue.md), and [C++](../debugger/supported-code-changes-cpp.md).
36
-
37
-
- You tried to edit code in a program that you attached to rather than starting from the **Debug** menu.
38
-
39
-
- You tried to edit code while debugging a Dr. Watson dump.
40
-
41
-
- You tried to edit code after an unhandled exception occurred and the option "**Unwind the call stack on unhandled exceptions**" was not selected.
42
-
43
-
- You tried to edit code while debugging an embedded runtime application.
44
-
45
-
- You tried to edit managed code using .NET Framework version prior to 4.5.1, and the target is a 64-bit application. If you want to use Edit and Continue, you must set the target to x86. (*projectname***Properties**, **Compile** tab, **Advanced Compiler** setting.).
46
-
47
-
- You tried to edit code in an assembly that was modified during debugging and has been reloaded.
48
-
49
-
- You tried to edit code in an assembly that has not been loaded.
50
-
51
-
- You started debugging an old version of your application (since the new version has build errors).
52
-
53
-
## UIElement List
54
-
**OK**
55
-
Exit the dialog box and cancel the immediately preceding edit attempt.
56
-
57
-
## See Also
58
-
[C++ Edit and Continue blog post](https://blogs.msdn.microsoft.com/vcblog/2016/07/01/c-edit-and-continue-in-visual-studio-2015-update-3/)
- Trying to edit optimized code. You may need to switch from a release build to a debug build.
32
+
- Trying to edit code while it's running, instead of while paused in the debugger. Try [setting a breakpoint](../debugger/using-breakpoints.md), and editing the code while paused.
33
+
- Trying to edit managed code when only unmanaged debugging is enabled. Edit and Continue doesn't work with [mixed-mode debugging](../debugger/how-to-debug-in-mixed-mode.md).
34
+
- Making a code change that isn't supported by Edit and Continue in your programming language. For more information, see articles about [supported code changes in C#](supported-code-changes-csharp.md), [unsupported edits in Visual Basic Edit and Continue](unsupported-edits-in-visual-basic-edit-and-continue.md), and [supported C++ code changes](supported-code-changes-cpp.md).
35
+
- Trying to edit code in an app you're attached to, instead of starting debugging from the **Debug** menu.
36
+
- Trying to edit code while debugging a Dr. Watson dump.
37
+
- Trying to edit code after an unhandled exception occurs, and the option **Unwind the call stack on unhandled exceptions** is not selected.
38
+
- Trying to edit code while debugging an embedded runtime application.
39
+
- Trying to edit managed code using a .NET Framework version earlier than 4.5.1 with a 64-bit app target. To use Edit and Continue for .NET Framework earlier than 4.5.1, set the target to **x86** in the **\<ProjectName>** > **Properties** > **Compile** tab, **Advanced Compiler** setting.
40
+
- Trying to edit code in an assembly that was modified during debugging and has been reloaded.
41
+
- Trying to edit code in an assembly that hasn't been loaded.
42
+
- Starting to debug an old version of an app, because the latest version has build errors.
43
+
44
+
For more information, see:
45
+
-[C++ Edit and Continue blog post](https://blogs.msdn.microsoft.com/vcblog/2016/07/01/c-edit-and-continue-in-visual-studio-2015-update-3/)
title: "How to: Enable and Disable Edit and Continue (C#, VB, C++) | Microsoft Docs"
2
+
title: "How to: Enable and disable Edit and Continue (C#, VB, C++) | Microsoft Docs"
3
3
ms.custom: ""
4
-
ms.date: "11/04/2016"
4
+
ms.date: "10/04/2018"
5
5
ms.technology: "vs-ide-debug"
6
6
ms.topic: "conceptual"
7
7
dev_langs:
@@ -28,35 +28,28 @@ ms.workload:
28
28
- "dotnet"
29
29
- "cplusplus"
30
30
---
31
-
# How to: Enable and Disable Edit and Continue (C#, VB, C++)
32
-
You can disable or enable Edit and Continue in the **Options** dialog box at design time. You cannot change this setting while you are debugging.
31
+
# How to: Enable and disable Edit and Continue (C#, VB, C++)
32
+
33
+
You can disable or enable **Edit and Continue** in the Visual Studio **Options** dialog box at design time. **Edit and Continue** works only in debug builds. For more information, see [Edit and Continue](../debugger/edit-and-continue.md).
33
34
34
-
Edit and Continue works only in debug builds. For native C++, Edit and Continue requires using the /INCREMENTAL option. For more information about feature requirements in C++, see this [blog post](https://blogs.msdn.microsoft.com/vcblog/2016/07/01/c-edit-and-continue-in-visual-studio-2015-update-3/) and [Edit and Continue (Visual C++)](../debugger/edit-and-continue-visual-cpp.md).
35
+
For native C++, **Edit and Continue** requires using the `/INCREMENTAL` option. For more information about feature requirements in C++, see this [blog post](https://blogs.msdn.microsoft.com/vcblog/2016/07/01/c-edit-and-continue-in-visual-studio-2015-update-3/) and [Edit and Continue (Visual C++)](../debugger/edit-and-continue-visual-cpp.md).
35
36
36
-
#### To enable/disable Edit and Continue
37
+
**To enable or disable Edit and Continue:**
37
38
38
-
1. If you are in a debugging session, stop debugging (**Shift + F5**).
39
+
1. If you're in a debugging session, stop debugging (**Debug** > **Stop Debugging** or **Shift**+**F5**).
39
40
40
-
2. Open debugging options page (**Tools > Options > Debugging**).
41
-
42
-
3. Select **General**, and scroll down to **Edit and Continue** category (right pane).
43
-
44
-
4. To enable, select the **Enable Edit and Continue** check box. To disable, clear the check box.
41
+
1. In **Tools** > **Options** > (or **Debug** > **Options**) > **Debugging** > **General**, select **Edit and Continue** in the right pane.
45
42
46
43
> [!NOTE]
47
44
> If IntelliTrace is enabled and you collect both IntelliTrace events and call information, Edit and Continue is disabled. For more information, see [IntelliTrace](../debugger/intellitrace.md).
48
-
49
-
5. (C++) To enable, select **Enable Native Edit and Continue**. To disable, clear the check box.
50
-
51
-
6. (C++) Set additional options for native code.
52
-
45
+
46
+
1. For C++ code, make sure **Enable Native Edit and Continue** is selected, and set the additional options:
53
47
-**Apply changes on continue (Native only)**
54
-
Visual Studio automatically compiles and applies any outstanding code changes you have made when continuing the process from a break state. If not selected, you can choose to apply changes using the "Apply Code Changes" item under the Debug menu.
55
-
48
+
49
+
If selected, Visual Studio automatically compiles and applies code changes when you continue debugging from a break state. Otherwise, you can choose to apply changes using **Debug** > **Apply Code Changes**.
50
+
56
51
-**Warn about stale code (Native only)**
57
-
Get warnings about stale code.
58
-
59
-
7. Click **OK**.
52
+
53
+
If selected, gives warnings about stale code.
60
54
61
-
## See Also
62
-
[Edit and Continue](../debugger/edit-and-continue.md)
title: "How to: Use Edit and Continue (C#) | Microsoft Docs"
3
3
ms.custom: ""
4
-
ms.date: "11/04/2016"
4
+
ms.date: "10/04/2018"
5
5
ms.technology: "vs-ide-debug"
6
6
ms.topic: "conceptual"
7
7
dev_langs:
@@ -19,31 +19,29 @@ ms.workload:
19
19
- "dotnet"
20
20
---
21
21
# How to: Use Edit and Continue (C#)
22
-
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.
23
-
24
-
Edit and Continue is invoked automatically when you make changes in break mode, then choose a debugger execution command, such as **Continue**, **Step**, or **Set Next Statement**, or evaluate a function in a debugger window.
25
-
26
-
> [!NOTE]
27
-
> Edit and Continue is not supported when debugging optimized code, mixed native/managed code, or SQL Server common language runtime (CLR) integration code. For information on other unsupported scenarios, see [Supported Code Changes (C# and Visual Basic)](../debugger/supported-code-changes-csharp.md). If you try to apply code changes in one of these scenarios, the debugger displays a dialog box explaining that Edit and Continue is not supported.
28
-
29
-
### To invoke Edit and Continue automatically
30
-
31
-
1. In break mode, make a change to your source code.
32
-
33
-
2. From the **Debug** menu, click **Continue**, **Step**, or **Set Next Statement** or evaluate a function in a debugger window.
34
-
35
-
The new code is compiled and the debugging continues with the new code. Some changes are not supported by Edit and Continue. For more information, see [Supported Code Changes (C# and Visual Basic)](../debugger/supported-code-changes-csharp.md).
36
-
37
-
### To enable/disable Edit and Continue
38
-
39
-
1. On the **Tools** menu, click **Options**.
40
-
41
-
2. In the **Options** dialog box, expand the **Debugging** node, and select **Edit and Continue**.
42
-
43
-
3. In the **Options** dialog box **Edit and Continue** page, select or clear the **Enable Edit and Continue** check box.
44
-
45
-
The setting takes effect when you restart the debugging session.
46
-
47
-
## See Also
48
-
[Edit and Continue (Visual C#)](../debugger/edit-and-continue-visual-csharp.md)
49
-
[Supported Code Changes (C# and Visual Basic)](../debugger/supported-code-changes-csharp.md)
22
+
With Edit and Continue, you can make and apply changes to your code in break mode while debugging, without having to stop and restart the debugging session.
23
+
24
+
Edit and Continue for C# happens automatically when you make code changes in break mode, then continue debugging by using **Continue**, **Step**, or **Set Next Statement**, or evaluate a function in a debugger window.
25
+
26
+
For more information, see [Edit and Continue (Visual C#)](../debugger/edit-and-continue-visual-csharp.md).
27
+
28
+
>[!NOTE]
29
+
>Edit and Continue is not supported for optimized, mixed, or SQL Server common language runtime (CLR) integration code. For information on other unsupported scenarios, see [Supported code changes (C# and Visual Basic)](../debugger/supported-code-changes-csharp.md). If you try to Edit and Continue with one of these scenarios, a message box appears stating that Edit and Continue is not supported.
30
+
31
+
**To enable or disable Edit and Continue:**
32
+
33
+
1. If you're in a debugging session, stop debugging (**Debug** > **Stop Debugging** or **Shift**+**F5**).
34
+
35
+
1. In **Tools** > **Options** (or **Debug** > **Options**) > **Debugging** > **General**, select or clear the **Enable Edit and Continue** check box.
36
+
37
+
The setting takes effect when you start or restart the debugging session.
38
+
39
+
**To use Edit and Continue:**
40
+
41
+
1. While debugging, in break mode, make a change to your source code.
42
+
43
+
1. From the **Debug** menu, click **Continue**, **Step**, or **Set Next Statement**, or evaluate a function in a debugger window.
44
+
45
+
Debugging continues with the new, compiled code.
46
+
47
+
Some types of code changes are not supported by Edit and Continue. For more information, see [Supported code changes (C# and Visual Basic)](../debugger/supported-code-changes-csharp.md).
title: "How to: Respond to the Just-In-Time Debugger | Microsoft Docs"
2
+
title: "Disable the Just-In-Time Debugger | Microsoft Docs"
3
3
ms.custom: ""
4
-
ms.date: "05/23/17"
4
+
ms.date: "05/23/18"
5
5
ms.technology: "vs-ide-debug"
6
6
ms.topic: "troubleshooting"
7
7
helpviewer_keywords:
@@ -14,34 +14,30 @@ manager: douge
14
14
ms.workload:
15
15
- "multiple"
16
16
---
17
-
# How to: Respond to the Just-In-Time Debugger
17
+
# Disable the Just-In-Time Debugger
18
18
19
-
The actions you should take when you see the Just-in-Time debugger dialog box depend on what you are trying to do:
19
+
The Just-In-Time Debugger dialog box may open when an error occurs in a running app, and prevent the app from continuing.
20
20
21
-
#### If you want to fix or debug the error (Visual Studio users)
21
+
The Just-In-Time Debugger gives you the option to launch Visual Studio to debug the error. You must have [Visual Studio](http://visualstudio.microsoft.com) or another selected debugger installed to view detailed information about the error or try to debug it.
22
22
23
-
- You must have [Visual Studio installed](http://visualstudio.microsoft.com) to view the detailed information about the error and to try to debug it. For more information, see [Debug using the Just-In-Time Debugger](../debugger/debug-using-the-just-in-time-debugger.md). If you cannot resolve the error and fix the app, contact the owner of the app to resolve the error.
23
+
If you're a Visual Studio user and want to try to debug the error, see [Debug using the Just-In-Time Debugger](../debugger/debug-using-the-just-in-time-debugger.md). If you can't fix the error, or want to keep the Just-In-Time Debugger from opening, you can [disable Just-In-Time debugging from Visual Studio](debug-using-the-just-in-time-debugger.md#BKMK_Enabling).
24
24
25
-
#### If you want to prevent the Just-In-Time Debugger dialog box from appearing
25
+
If you had Visual Studio installed but no longer do, you may need to [disable Just-In-Time debugging from the Windows registry](debug-using-the-just-in-time-debugger.md#disable-just-in-time-debugging-from-the-windows-registry).
26
26
27
-
You can take steps to prevent the Just-in-Time Debugger dialog box from appearing. If the app handles the error, you can run the app normally.
27
+
If you don't have Visual Studio installed, you can prevent Just-In-Time debugging by disabling script debugging or server-side debugging.
28
28
29
-
1. (Web apps) If you are trying to run a web app, you can disable script debugging.
29
+
- If you're trying to run a web app, disable script debugging:
30
+
31
+
In Windows **Control Panel** > **Network and Internet** > **Internet Options**, select **Disable script debugging (Internet Explorer)** and **Disable script debugging (other)**. The exact steps and settings depend on your version of Windows and your browser.
32
+
33
+

34
+
35
+
- If you're hosting an ASP.NET web app in IIS, disable server-side debugging:
30
36
31
-
For Internet Explorer or Edge, disable script debugging in the Internet Options dialog box. You can access these settings from the **Control Panel** > **Network and Internet** > **Internet Options** (the exact steps depend on your version of Windows and your browser).
37
+
1. In IIS Manager **Features View**, under the **ASP.NET** section, double-click **.NET Compilation**, or select it and then select **Open Feature** in the **Actions** pane.
38
+
1. Under **Behavior** > **Debug**, select **False**. The steps are different in older versions of IIS.
After you disable Just-In-Time debugging, the app may be able to handle the error and run normally.
34
41
35
-
Then reopen the web page where you found the error. If changing this setting does not resolve the issue, contact the owner of the web app to fix the issue.
42
+
If the app still has an unhandled error, you may see an error message, or the app may crash or hang. The app won't run normally until the error is fixed. You can try to contact the owner of the app and ask them to fix it.
36
43
37
-
3. (Visual Studio users) If you have Visual Studio installed (or if you had it installed previously and removed it), [disable Just-in-Time debugging](../debugger/debug-using-the-just-in-time-debugger.md) and try to run the app again.
38
-
39
-
> [!IMPORTANT]
40
-
> If you disable Just-in-Time debugging and the app encounters an unhandled exception (an error), you will either see a standard error dialog box instead, or the app will crash or hang. The app will not run normally until the error is fixed (by you or the owner of the app).
41
-
42
-
2. (ASP.NET and IIS) If you are hosting an ASP.NET Web app in IIS, disable server-side debugging.
43
-
44
-
In IIS Manager, right-click the server node and choose **Switch to Features View**. Under the ASP.NET section, choose **.NET Compilation** and then make sure you choose **False** as the Debug behavior (the steps are different in older versions of IIS).
0 commit comments