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/debugger-tips-and-tricks.md
+14-35Lines changed: 14 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,17 +97,12 @@ It's easy to view variables using debugger windows like the **Watch** window. Ho
97
97
98
98
1. Find the variable in the **Locals** window (**Debug > Windows > Locals**), right-click the variable, and select **Make Object ID**.
99
99
100
-
::: moniker range="visualstudio"
101
-
102
-

103
-
104
-
::: moniker-end
105
-
106
-
::: moniker range="vs-2022"
107
-
108
-

109
-
110
-
::: moniker-end
100
+
::: moniker range="visualstudio"
101
+

102
+
::: moniker-end
103
+
::: moniker range="vs-2022"
104
+

105
+
::: moniker-end
111
106
112
107
1. You should see a **$** plus a number in the **Locals** window. This variable is the object ID.
113
108
@@ -160,29 +155,21 @@ In addition, you can enter functions in the **Immediate** window to view return
160
155
When working with strings, it can be helpful to view the entire formatted string. To view a plain text, XML, HTML, or JSON string, click the magnifying glass icon  while hovering over a variable containing a string value.
161
156
162
157
::: moniker range="visualstudio"
163
-
164
-

165
-
158
+

166
159
::: moniker-end
167
160
168
161
::: moniker range="vs-2022"
169
-
170
-

171
-
162
+

172
163
::: moniker-end
173
164
174
165
A string visualizer may help you find out whether a string is malformed, depending on the string type. For example, a blank **Value** field indicates the string is not recognized by the visualizer type. For more information, see [String Visualizer Dialog Box](../debugger/string-visualizer-dialog-box.md).
175
166
176
167
::: moniker range="visualstudio"
177
-
178
-

179
-
168
+

180
169
::: moniker-end
181
170
182
171
::: moniker range="vs-2022"
183
-
184
-

185
-
172
+

186
173
::: moniker-end
187
174
188
175
For a few other types such as DataSet and DataTable objects that appear in the debugger windows, you can also open a built-in visualizer.
@@ -208,15 +195,11 @@ The debugger breaks into your code on unhandled exceptions. However, handled exc
208
195
The **Exception Settings** dialog box allows you to tell the debugger to break into code on specific exceptions. In the illustration below, the debugger breaks into your code whenever a `System.NullReferenceException` occurs. For more information, see [Managing exceptions](../debugger/managing-exceptions-with-the-debugger.md).
209
196
210
197
::: moniker range="visualstudio"
211
-
212
-

213
-
198
+

214
199
::: moniker-end
215
200
216
201
::: moniker range="vs-2022"
217
-
218
-

219
-
202
+

220
203
::: moniker-end
221
204
222
205
## Change the execution flow
@@ -253,15 +236,11 @@ To attach to your running app, the debugger loads symbol (.pdb) files generated
253
236
Open the **Modules** window while debugging by selecting **Debug > Windows > Modules**. The **Modules** window can tell you what modules the debugger is treating as user code, or [*My Code*](../debugger/just-my-code.md), and the symbol loading status for the module. In most scenarios, the debugger automatically finds symbol files for user code, but if you want to step into (or debug) .NET code, system code, or third-party library code, extra steps are required to obtain the correct symbol files.
254
237
255
238
::: moniker range="visualstudio"
256
-
257
-

258
-
239
+

259
240
::: moniker-end
260
241
261
242
::: moniker range="vs-2022"
262
-
263
-

264
-
243
+

265
244
::: moniker-end
266
245
267
246
You can load symbol information directly from the **Modules** window by right-clicking and choosing **Load Symbols**.
Copy file name to clipboardExpand all lines: docs/debugger/remote-debugging-aspnet-on-a-remote-iis-7-5-computer.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: "Remote debug ASP.NET on an IIS computer"
3
3
description: Learn how to set up and configure a Visual Studio ASP.NET MVC 4.8 application, deploy it to IIS, and attach the remote debugger from Visual Studio.
4
-
ms.date: 04/23/2024
4
+
ms.date: 05/28/2026
5
5
ms.topic: how-to
6
6
author: "mikejo5000"
7
7
ms.author: "mikejo"
@@ -18,14 +18,15 @@ To debug an ASP.NET application that has been deployed to IIS, install and run t
18
18
This guide explains how to set up and configure a Visual Studio ASP.NET MVC 4.8 application, deploy it to IIS, and attach the remote debugger from Visual Studio.
19
19
20
20
> [!NOTE]
21
-
> To remote debug ASP.NET Core instead, see [Remote Debug ASP.NET Core on an IIS Computer](../debugger/remote-debugging-aspnet-on-a-remote-iis-computer.md). For Azure App Service, see [Remote debug ASP.NET Core on Azure](/training/modules/dotnet-debug-visual-studio-azure-web-apps/) or, for Visual Studio Enterprise, use the [Snapshot Debugger](../debugger/debug-live-azure-applications.md) (.NET 4.6.1 required).
21
+
> To remote debug ASP.NET Core instead, see [Remote Debug ASP.NET Core on an IIS Computer](../debugger/remote-debugging-aspnet-on-a-remote-iis-computer.md). For Azure App Service, see [Remote debug ASP.NET Core on Azure](../debugger/remote-debugging-azure-app-service.md).
22
22
23
23
## Prerequisites
24
24
25
25
Visual Studio 2019 or a later version is required to follow the steps shown in this article.
26
26
27
27
These procedures have been tested on these server configurations:
28
28
29
+
* Windows Server 2025 and IIS 10
29
30
* Windows Server 2022 and IIS 10
30
31
* Windows Server 2012 R2 and IIS 8 (For Windows Server 2008 R2, the server steps are different)
31
32
@@ -123,15 +124,14 @@ After the app deploys successfully, it should start automatically. If the app do
123
124
When you're ready, switch to a debug configuration.
124
125
125
126
> [!IMPORTANT]
126
-
> If you choose to debug a Release configuration, you disable debugging in the *web.config* file when you publish.
127
+
> If you choose a Release configuration, you disable debugging in the *web.config* file when you publish.
127
128
128
129
::: moniker range=">=vs-2022"
129
130
1. Select **More Options** > **Edit** to edit the profile, and then select **Settings**.
130
131
1. Select a **Debug** configuration, and then select **Remove additional files at destination** under the **File Publish** options.
131
132
1. Select **Save** and then republish the app.
132
133
::: moniker-end
133
134
134
-
135
135
> [!WARNING]
136
136
> Using username and password credentials (basic authentication) is not the most secure method of authentication. Whenever possible, use alternative methods. For example, consider publishing to a package from Visual Studio, and then use *WebDeploy.exe* from a command line to deploy the package. With that method, you can use IIS Manager to configure authorized Windows users who can publish to the web server, and run *WebDeploy.exe* under that Windows user account. See [Installing and Configuring Web Deploy on IIS 8.0 or Later](/iis/install/installing-publishing-technologies/installing-and-configuring-web-deploy-on-iis-80-or-later). If you do use password credentials, be sure to use a strong password, and secure the password from being leaked or shared.
137
137
@@ -263,7 +263,7 @@ Starting in Visual Studio 2022 version 17.10 Preview 2, the Attach to Process di
263
263
- If you can't connect to the host using the host name, try the IP address instead.
264
264
- Make sure the required ports are open on the remote server.
265
265
- Verify that the version of ASP.NET used in your app is the same as the version you installed on the server. For your app, you can view and set the version in the **Properties** page. To set the app to a different version, that version must be installed.
266
-
- If the app tried to open, but you see a certificate warning, choose to trust the site. If you already closed the warning, you can edit the publishing profile, a *.pubxml file, in your project and add the following element (for test only): `<AllowUntrustedCertificate>true</AllowUntrustedCertificate>`
266
+
- If the app tried to open, but you see a certificate warning, choose to trust the site. If you already closed the warning, you can edit the publishing profile, a *.pubxml* file in the *Properties\PublishProfiles* folder, and add the following element (for test only): `<AllowUntrustedCertificate>true</AllowUntrustedCertificate>`
267
267
- After it's deployed, start the app in IIS to test that it deployed correctly.
268
268
- Check the Output window in Visual Studio for status information, and check your error messages.
0 commit comments