Skip to content

Commit 700c3a8

Browse files
Learn Build Service GitHub AppLearn Build Service GitHub App
authored andcommitted
Merging changes synced from https://github.com/MicrosoftDocs/visualstudio-docs-pr (branch live)
2 parents cc29354 + 447e507 commit 700c3a8

16 files changed

Lines changed: 126 additions & 81 deletions

docs/debugger/debugger-tips-and-tricks.md

Lines changed: 14 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,12 @@ It's easy to view variables using debugger windows like the **Watch** window. Ho
9797

9898
1. Find the variable in the **Locals** window (**Debug > Windows > Locals**), right-click the variable, and select **Make Object ID**.
9999

100-
::: moniker range="visualstudio"
101-
102-
![Screenshot showing how to create an object ID in Visual Studio.](media/visualstudio/debug-tips-watch-create-object-id.png)
103-
104-
::: moniker-end
105-
106-
::: moniker range="vs-2022"
107-
108-
![Screenshot showing how to create an object ID.](media/dbg-tips-watch-create-object-id.png "CreateObjectID")
109-
110-
::: moniker-end
100+
::: moniker range="visualstudio"
101+
![Screenshot showing how to create an object ID in Visual Studio.](media/visualstudio/debug-tips-watch-create-object-id.png)
102+
::: moniker-end
103+
::: moniker range="vs-2022"
104+
![Screenshot showing how to create an object ID.](media/dbg-tips-watch-create-object-id.png "CreateObjectID")
105+
::: moniker-end
111106

112107
1. You should see a **$** plus a number in the **Locals** window. This variable is the object ID.
113108

@@ -160,29 +155,21 @@ In addition, you can enter functions in the **Immediate** window to view return
160155
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 ![VisualizerIcon](../debugger/media/dbg-tips-visualizer-icon.png "Visualizer icon") while hovering over a variable containing a string value.
161156

162157
::: moniker range="visualstudio"
163-
164-
![Screenshot that shows how to open a String Visualizer in Visual Studio.](media/visualstudio/debug-tips-string-visualizers-2.png "OpenStringVisualizer")
165-
158+
![Screenshot that shows how to open a String Visualizer.](../debugger/media/visualstudio/debug-tips-string-visualizers-2.png "OpenStringVisualizer")
166159
::: moniker-end
167160

168161
::: moniker range="vs-2022"
169-
170-
![Screenshot that shows how to open a String Visualizer.](media/dbg-tips-string-visualizers.png "OpenStringVisualizer")
171-
162+
![Screenshot that shows how to open a String Visualizer.](../debugger/media/dbg-tips-string-visualizers.png "OpenStringVisualizer")
172163
::: moniker-end
173164

174165
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).
175166

176167
::: moniker range="visualstudio"
177-
178-
![Screenshot that shows the JSON String Visualizer in Visual Studio.](media/visualstudio/debug-tips-string-visualizer-json.png "JSONStringVisualizer")
179-
168+
![Screenshot that shows the JSON String Visualizer.](../debugger/media/visualstudio/debug-tips-string-visualizer-json.png "JSONStringVisualizer")
180169
::: moniker-end
181170

182171
::: moniker range="vs-2022"
183-
184-
![Screenshot that shows the JSON String Visualizer.](media/dbg-tips-string-visualizer-json.png "JSONStringVisualizer")
185-
172+
![Screenshot that shows the JSON String Visualizer.](../debugger/media/dbg-tips-string-visualizer-json.png "JSONStringVisualizer")
186173
::: moniker-end
187174

188175
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
208195
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).
209196

210197
::: moniker range="visualstudio"
211-
212-
![Screenshot that shows the Exception Settings dialog box in Visual Studio.](media/visualstudio/debug-tips-exception-settings.png "ExceptionSettingsDialogBox")
213-
198+
![Screenshot that shows the Exception Settings dialog box.](../debugger/media/visualstudio/debug-tips-exception-settings.png "ExceptionSettingsDialogBox")
214199
::: moniker-end
215200

216201
::: moniker range="vs-2022"
217-
218-
![Screenshot that shows the Exception Settings dialog box.](media/dbg-tips-exception-settings.png "ExceptionSettingsDialogBox")
219-
202+
![Screenshot that shows the Exception Settings dialog box.](../debugger/media/dbg-tips-exception-settings.png "ExceptionSettingsDialogBox")
220203
::: moniker-end
221204

222205
## Change the execution flow
@@ -253,15 +236,11 @@ To attach to your running app, the debugger loads symbol (.pdb) files generated
253236
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.
254237

255238
::: moniker range="visualstudio"
256-
257-
![Screenshot that shows how to view symbol information in the Modules window in Visual Studio.](media/visualstudio/debug-tips-modules-window.png "ViewSymbolInformation")
258-
239+
![Screenshot that shows how to view symbol information in the Modules window.](../debugger/media/visualstudio/debug-tips-modules-window.png "ViewSymbolInformation")
259240
::: moniker-end
260241

261242
::: moniker range="vs-2022"
262-
263-
![Screenshot that shows how to view symbol information in the Modules window.](media/dbg-tips-modules-window.png "ViewSymbolInformation")
264-
243+
![Screenshot that shows how to view symbol information in the Modules window.](../debugger/media/dbg-tips-modules-window.png "ViewSymbolInformation")
265244
::: moniker-end
266245

267246
You can load symbol information directly from the **Modules** window by right-clicking and choosing **Load Symbols**.
122 KB
Loading
64.1 KB
Loading
63.4 KB
Loading
58.9 KB
Loading
72.2 KB
Loading
54.6 KB
Loading
56 KB
Loading
41.4 KB
Loading

docs/debugger/remote-debugging-aspnet-on-a-remote-iis-7-5-computer.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Remote debug ASP.NET on an IIS computer"
33
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
55
ms.topic: how-to
66
author: "mikejo5000"
77
ms.author: "mikejo"
@@ -18,14 +18,15 @@ To debug an ASP.NET application that has been deployed to IIS, install and run t
1818
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.
1919

2020
> [!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).
2222
2323
## Prerequisites
2424

2525
Visual Studio 2019 or a later version is required to follow the steps shown in this article.
2626

2727
These procedures have been tested on these server configurations:
2828

29+
* Windows Server 2025 and IIS 10
2930
* Windows Server 2022 and IIS 10
3031
* Windows Server 2012 R2 and IIS 8 (For Windows Server 2008 R2, the server steps are different)
3132

@@ -123,15 +124,14 @@ After the app deploys successfully, it should start automatically. If the app do
123124
When you're ready, switch to a debug configuration.
124125

125126
> [!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.
127128
128129
::: moniker range=">=vs-2022"
129130
1. Select **More Options** > **Edit** to edit the profile, and then select **Settings**.
130131
1. Select a **Debug** configuration, and then select **Remove additional files at destination** under the **File Publish** options.
131132
1. Select **Save** and then republish the app.
132133
::: moniker-end
133134

134-
135135
> [!WARNING]
136136
> 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.
137137
@@ -263,7 +263,7 @@ Starting in Visual Studio 2022 version 17.10 Preview 2, the Attach to Process di
263263
- If you can't connect to the host using the host name, try the IP address instead.
264264
- Make sure the required ports are open on the remote server.
265265
- 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>`
267267
- After it's deployed, start the app in IIS to test that it deployed correctly.
268268
- Check the Output window in Visual Studio for status information, and check your error messages.
269269

0 commit comments

Comments
 (0)