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
+17-16Lines changed: 17 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Debug using the Just-In-Time Debugger | Microsoft Docs
3
3
description: Debug using the Just-In-Time Debugger in Visual Studio. Just-In-Time debugging can launch Visual Studio automatically when an app errors or crashes.
4
4
ms.custom: SEO-VS-2020
5
-
ms.date: 08/24/2021
5
+
ms.date: 12/20/2021
6
6
ms.topic: how-to
7
7
helpviewer_keywords:
8
8
- debugging [Visual Studio], Just-In-Time
@@ -50,23 +50,23 @@ Just-In-Time debugging may still be enabled even if Visual Studio is no longer i
50
50
51
51
1. From the Windows **Start** menu, run the **Registry Editor** (*regedit.exe*).
52
52
53
-
2. In the **Registry Editor** window, locate and delete the following registry entries:
53
+
2. In the **Registry Editor** window for 64-bit computers, locate and delete the following registry entries:
This example walks you through Just-In-Time debugging when an app throws an error.
97
98
98
99
- You must have Visual Studio installed to follow these steps. If you don't have Visual Studio, you can download the free [Visual Studio Community Edition](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=Community&rel=15).
@@ -125,7 +126,7 @@ For this example, you'll make a C# console app in Visual Studio that throws a [N
125
126
126
127
You should see the following command window:
127
128
128
-

129
+

129
130
130
131
1. The **Choose Just-In-Time Debugger** dialog opens.
131
132
@@ -137,7 +138,7 @@ For this example, you'll make a C# console app in Visual Studio that throws a [N
137
138
138
139
The ThrowsNullException project opens in a new instance of Visual Studio, with execution stopped at the line that threw the exception:
139
140
140
-

141
+

141
142
142
143
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.
143
144
@@ -152,19 +153,19 @@ If Just-In-Time debugging doesn't start when an app crashes, even though it is e
152
153
153
154
To fix this issue, use Registry Editor to add a **DWORD Value** of **Disabled**, with **Value data** of **1**, to the following registry keys:
Copy file name to clipboardExpand all lines: docs/debugger/how-to-set-debug-and-release-configurations.md
+42-22Lines changed: 42 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Set debug and release configurations | Microsoft Docs
3
3
description: Set debug and release configurations in Visual Studio. You build the debug version for debugging and the release version for the final release distribution.
4
4
ms.custom: SEO-VS-2020
5
-
ms.date: 10/05/2018
5
+
ms.date: 12/21/2021
6
6
ms.topic: how-to
7
7
f1_keywords:
8
8
- vs.debug.builds
@@ -51,13 +51,13 @@ You can change the build configuration from the **Build** menu, from the toolbar
51
51
52
52
To change the build configuration, either:
53
53
54
-
*From the **Build** menu, select **Configuration Manager**, then select **Debug**or **Release**.
54
+
*On the toolbar, choose either **Debug** or **Release**from the **Solution Configurations** list.
* From the **Build** menu, select **Configuration Manager**, then select **Debug** or **Release**.
61
61
62
62
## <aname="BKMK_symbols_release"></a>Generate symbol (.pdb) files for a build (C#, C++, Visual Basic, F#)
63
63
@@ -68,49 +68,69 @@ You can choose to generate symbol (.pdb) files and what debug information to inc
68
68
69
69
Each project type may have a different way of setting these options.
70
70
71
-
### Generate symbol files for a C#, ASP.NET, or Visual Basic project
71
+
::: moniker range=">=vs-2022"
72
+
### Generate symbol files for a C# or ASP.NET Core project (.NET only)
72
73
73
-
For detailed information on project settings for debug configurations in C# or Visual Basic, see [Project settings for a C# debug configuration](../debugger/project-settings-for-csharp-debug-configurations.md) or [Project settings for a Visual Basic debug configuration](../debugger/project-settings-for-a-visual-basic-debug-configuration.md).
74
+
For detailed information on project settings for debug configurations in C#, see [Project settings for a C# debug configuration](../debugger/project-settings-for-csharp-debug-configurations.md). (For .NET projects in Visual Basic, symbol files are configured the same as in .NET Framework.)
74
75
75
-
1. In Solution Explorer, select the project.
76
+
1. In Solution Explorer, right-click the project and choose **Properties**.
76
77
77
-
2.Select the **Properties**icon (or press **Alt+Enter**).
78
+
2.In the side pane, choose **Build**> **General**.
78
79
79
-
3. In the side pane, choose **Build**(or **Compile** in Visual Basic).
80
+
3. In the **Optimize code** section, choose **Debug** or **Release**.
80
81
81
-
4. In the **Configuration** list, choose **Debug**or **Release**.
82
+
4. In the **Debug symbols** list, choose **PDB file, current platform**, **PBD file, portable**, or **Embedded**.
82
83
83
-
5. Select the **Advanced** button (or the **Advanced Compile Options** button in Visual Basic).
84
+
The portable format is the most recent cross-platform format for .NET Core. For more information on options, see [Advanced Build Settings dialog box (C#)](../ide/reference/advanced-build-settings-dialog-box-csharp.md).
85
+
86
+

87
+
88
+
5. Build your project.
89
+
90
+
The compiler creates the symbol file(s) in the same folder as the executable or the main output file.
91
+
::: moniker-end
84
92
85
-
6. In the **Debugging information** list (or the **Generate debug info** list in Visual Basic), choose **Full**, **Pdb-only**, or **Portable**.
93
+
### Generate symbol files for a C#, ASP.NET, or Visual Basic project (.NET Framework)
94
+
95
+
For detailed information on project settings for debug configurations in C# or Visual Basic, see [Project settings for a C# debug configuration](../debugger/project-settings-for-csharp-debug-configurations.md) or [Project settings for a Visual Basic debug configuration](../debugger/project-settings-for-a-visual-basic-debug-configuration.md).
96
+
97
+
1. In Solution Explorer, right-click the project and choose **Properties**.
98
+
99
+
2. In the side pane, choose **Build** (or **Compile** in Visual Basic).
100
+
101
+
3. In the **Configuration** list at the top, choose **Debug** or **Release**.
102
+
103
+
4. Select the **Advanced** button (or the **Advanced Compile Options** button in Visual Basic).
104
+
105
+
5. In the **Debugging information** list (or the **Generate debug info** list in Visual Basic), choose **Full**, **Pdb-only**, or **Portable**.
86
106
87
107
The portable format is the most recent cross-platform format for .NET Core. For more information on options, see [Advanced Build Settings dialog box (C#)](../ide/reference/advanced-build-settings-dialog-box-csharp.md).
88
108
89
-

109
+

90
110
91
-
7. Build your project.
111
+
6. Build your project.
92
112
93
113
The compiler creates the symbol file(s) in the same folder as the executable or the main output file.
94
114
95
115
### Generate symbol files for a C++ project
96
116
97
-
1. In Solution Explorer, select the project.
117
+
1. In Solution Explorer, right-click the project and choose **Properties**.
98
118
99
-
2.Select the **Properties**icon (or press **Alt+Enter**).
119
+
2.In the **Configuration**list, choose **Debug** or **Release**.
100
120
101
-
3. In the **Configuration** list, choose **Debug** or **Release**.
121
+
3. In the side pane, choose **Linker > Debugging**, then select options for **Generate Debug Info**.
102
122
103
-
4. In the side pane, choose **Linker > Debugging**, then select options for**Generate Debug Info**.
123
+
In most C++ projects, the default value is**Generate Debug Information (/DEBUG)**.
104
124
105
125
For detailed information on project settings for debug configurations in C++, see [Project settings for a C++ debug configuration](../debugger/project-settings-for-a-cpp-debug-configuration.md).
106
126
107
-
5. Configure options for **Generate Program Database Files**.
127
+
4. Configure options for **Generate Program Database Files**.
108
128
109
129
In most C++ projects, the default value is `$(OutDir)$(TargetName).pdb`, which generates .pdb files in the output folder.
110
130
111
-

131
+

112
132
113
-
6. Build your project.
133
+
5. Build your project.
114
134
115
135
The compiler creates the symbol file(s) in the same folder as the executable or the main output file.
Copy file name to clipboardExpand all lines: docs/debugger/how-to-use-the-modules-window.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ The **Symbol Status** column in the **Modules** window shows which modules have
55
55
56
56
1. If the symbols don't load, select **Symbol Settings** to open the **Options** dialog, and specify or change symbol loading locations.
57
57
58
-
You can download symbols from the public Microsoft Symbol Servers or other servers, or load symbols from a folder on your computer. For details, see [Specify symbol locations and loading behavior](../debugger/specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger.md#BKMK_Specify_symbol_locations_and_loading_behavior).
58
+
You can download symbols from the public Microsoft Symbol Servers or other servers, or load symbols from a folder on your computer. For details, see [Configure location of symbol files and loading behavior](../debugger/specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger.md#configure-location-of-symbol-files-and-loading-options).
Copy file name to clipboardExpand all lines: docs/debugger/navigating-through-code-with-the-debugger.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -185,7 +185,7 @@ To look at framework code, third-party library code, or system calls while debug
185
185
186
186
If you've loaded debugging symbols for Microsoft system code and disabled Just My Code, you can step into a system call just as you can any other call.
187
187
188
-
To learn about loading Microsoft symbols, see [Configure symbol locations and loading options](specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger.md#configure-symbol-locations-and-loading-options).
188
+
To learn about loading Microsoft symbols, see [Configure location of symbol files and loading options](specify-symbol-dot-pdb-and-source-files-in-the-visual-studio-debugger.md#configure-location-of-symbol-files-and-loading-options).
189
189
190
190
**To load symbols for a specific system component**
0 commit comments