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
Copy file name to clipboardExpand all lines: docs/debugger/debug-using-the-just-in-time-debugger.md
+30-30Lines changed: 30 additions & 30 deletions
Original file line number
Diff line number
Diff line change
@@ -16,14 +16,13 @@ ms.workload:
16
16
---
17
17
# Debug using the Just-In-Time Debugger in Visual Studio
18
18
19
-
Just-In-Time debugging can launch Visual Studio automatically when an app running outside Visual Studio errors or crashes. Just-In-Time debugging lets you test apps outside of Visual Studio, and open Visual Studio to begin debugging where a problem occurs.
19
+
Just-In-Time debugging can launch Visual Studio automatically when an app running outside Visual Studio errors or crashes. With Just-In-Time debugging, you can test apps outside of Visual Studio, and open Visual Studio to begin debugging when a problem occurs.
20
20
21
-
> [!TIP]
22
-
> If you just want to stop the Just-In-Time Debugger dialog box from appearing, see [Disable the Just-In-Time Debugger](../debugger/just-in-time-debugging-in-visual-studio.md). If you once had Visual Studio installed, but no longer do, you may need to [disable Just-In-Time debugging from the Windows registry](#disable-just-in-time-debugging-from-the-windows-registry).
23
-
24
-
> [!NOTE]
25
21
> Just-In-Time debugging works for Windows desktop apps. It does not work for Universal Windows Apps, or for managed code that is hosted in a native application, such as Visualizers.
26
22
23
+
> [!TIP]
24
+
> If you just want to stop the Just-In-Time Debugger dialog box from appearing but don't have Visual Studio installed, see [Disable the Just-In-Time Debugger](../debugger/just-in-time-debugging-in-visual-studio.md). If you once had Visual Studio installed, you may need to [disable Just-In-Time debugging from the Windows registry](#disable-just-in-time-debugging-from-the-windows-registry).
25
+
27
26
## <aname="BKMK_Enabling"></a> Enable or disable Just-In-Time debugging in Visual Studio
28
27
29
28
>[!NOTE]
@@ -37,7 +36,7 @@ You can configure Just-In-Time debugging from the Visual Studio **Tools** > **Op
37
36
38
37

39
38
40
-
1. In the **Enable Just-In-Time debugging for these types of code** box, select the types of code you want Just-In-Time debugging to debug: **Managed**, **Native**, **Script**.
39
+
1. In the **Enable Just-In-Time debugging for these types of code** box, select the types of code you want Just-In-Time debugging to debug: **Managed**, **Native**, and/or **Script**.
41
40
42
41
1. Select **OK**.
43
42
@@ -121,45 +120,46 @@ For this example, you'll make a C# console app in Visual Studio that throws a [N
121
120
>- If you select [Release](../debugger/how-to-set-debug-and-release-configurations.md) configuration, you must turn off [Just My Code](../debugger/just-my-code.md) for this procedure to work. Under **Tools** > **Options** > **Debugging**, deselect **Enable Just My Code**.
122
121
For more information about build configurations, see [Understanding build configurations](../ide/understanding-build-configurations.md).
123
122
124
-
1. Open the built app,*ThrowsNullException.exe* in your C# project folder (*...\ThrowsNullException\ThrowsNullException\bin\Debug* or *...\ThrowsNullException\ThrowsNullException\bin\Release*).
123
+
1. Open the built app *ThrowsNullException.exe* in your C# project folder (*...\ThrowsNullException\ThrowsNullException\bin\Debug* or *...\ThrowsNullException\ThrowsNullException\bin\Release*).
Do not click **Cancel**! After a few seconds, you should see two buttons, **Debug** and **Close program**. Select **Debug**.
135
-
136
-
> [!CAUTION]
137
-
> If your application contains untrusted code, a security warning dialog box appears, enabling you to decide whether to proceed with debugging. Before you continue debugging, decide whether you trust the code. Did you write the code yourself? If the application is running on a remote machine, do you recognize the name of the process? If the app is running locally, consider the possibility of malicious code running on your computer. If you decide the code you are about to debug is trustworthy, select **Debug**. Otherwise, select **Don't Debug**.
138
-
139
-
1. The **Visual Studio Just-In-Time Debugger** dialog appears.
129
+
1. The **Choose Just-In-Time Debugger** dialog opens.
You can start debugging at this point. If you were debugging a real app, you would need to find out why the code is throwing the exception.
150
142
151
-
You can start debugging at this point. If you were debugging a real application, you would need to find out why the code is throwing the exception.
143
+
> [!CAUTION]
144
+
> If your app contains untrusted code, a security warning dialog box appears, enabling you to decide whether to proceed with debugging. Before you continue debugging, decide whether you trust the code. Did you write the code yourself? If the application is running on a remote machine, do you recognize the name of the process? If the app is running locally, consider the possibility of malicious code running on your computer. If you decide the code is trustworthy, select **OK**. Otherwise, select **Cancel**.
If Just-In-Time debugging doesn't start when an app crashes, even though it is enabled in Visual Studio, Windows Error Reporting could be taking over the error handling on your computer.
156
-
157
-
To fix the issue, use Registry Editor to add a **DWORD Value** of **Disabled**, with **Value data** of **1**, to the following registry keys:
For more information, see [.WER settings](https://docs.microsoft.com/windows/desktop/wer/wer-settings).
158
+
159
+
- A known Windows issue may be causing the Just-In-Time debugger to fail. The fix is to a **DWORD Value** of **Auto**, with **Value data** of **1**, to the following registry keys:
Copy file name to clipboardExpand all lines: docs/debugger/how-to-enable-and-disable-edit-and-continue.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ ms.workload:
30
30
---
31
31
# How to: Enable and disable Edit and Continue (C#, VB, C++)
32
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, but you can't enable or disable **Edit and Continue** while you're debugging. For more information, see [Edit and Continue](../debugger/edit-and-continue.md).
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).
34
34
35
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).
36
36
@@ -46,7 +46,7 @@ For native C++, **Edit and Continue** requires using the `/INCREMENTAL` option.
46
46
1. For C++ code, make sure **Enable Native Edit and Continue** is selected, and set the additional options:
47
47
-**Apply changes on continue (Native only)**
48
48
49
-
If selected, Visual Studio automatically compiles and applies code changes when continuing from a break state. Otherwise, you can choose to apply changes using **Debug** > **Apply Code Changes**.
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**.
Copy file name to clipboardExpand all lines: docs/debugger/how-to-use-edit-and-continue-csharp.md
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -23,8 +23,10 @@ With Edit and Continue, you can make and apply changes to your code in break mod
23
23
24
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
25
26
+
For more information, see [Edit and Continue (Visual C#)](../debugger/edit-and-continue-visual-csharp.md).
27
+
26
28
>[!NOTE]
27
-
>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 states that Edit and Continue is not supported.
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.
28
30
29
31
**To enable or disable Edit and Continue:**
30
32
@@ -40,10 +42,6 @@ The setting takes effect when you start or restart the debugging session.
40
42
41
43
1. From the **Debug** menu, click **Continue**, **Step**, or **Set Next Statement**, or evaluate a function in a debugger window.
42
44
43
-
Debugging continues with the new, compiled code.
45
+
Debugging continues with the new, compiled code.
44
46
45
-
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).
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)
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).
Copy file name to clipboardExpand all lines: docs/debugger/just-in-time-debugging-in-visual-studio.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ ms.workload:
18
18
19
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
-
The Just-In-Time Debugger gives the option to launch Visual Studio or script debugging 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.
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
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) and [Debugger basics](../debugger/getting-started-with-the-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).
0 commit comments