Skip to content

Commit bdcc380

Browse files
authored
Merge pull request #6408 from Mikejo5000/mikejo-br17
Remote debugging error ref work
2 parents b678b31 + 66649a5 commit bdcc380

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

docs/debugger/remote-debugging-azure.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Remote Debug ASP.NET Core on IIS and Azure | Microsoft Docs"
33
ms.custom: "remotedebugging"
4-
ms.date: "05/21/2018"
4+
ms.date: "04/14/2020"
55
ms.topic: "conceptual"
66
ms.assetid: a6c04b53-d1b9-4552-a8fd-3ed6f4902ce6
77
author: "mikejo5000"
@@ -67,19 +67,25 @@ Debugging between two computers connected through a proxy is not supported. Debu
6767

6868
From Visual Studio, you can quickly publish and debug your app to a fully provisioned instance of IIS. However, the configuration of IIS is preset and you cannot customize it. For more detailed instructions, see [Deploy an ASP.NET Core web app to Azure using Visual Studio](/aspnet/core/tutorials/publish-to-azure-webapp-using-vs). (If you need the ability to customize IIS, try debugging on an [Azure VM](#remote_debug_azure_vm).)
6969

70-
#### To deploy the app and remote debug using Server Explorer
70+
#### To deploy the app and remote debug using Cloud Explorer
7171

7272
1. In Visual Studio, right-click the project node and choose **Publish**.
7373

7474
If you have previously configured any publishing profiles, the **Publish** pane appears. Click **New profile**.
7575

76-
1. Choose **Azure App Service** from the **Publish** dialog box, select **Create New**, and follow the prompts to publish.
76+
1. Choose **Azure App Service** from the **Publish** dialog box, select **Create New**, and follow the prompts to create a profile.
7777

7878
For detailed instructions, see [Deploy an ASP.NET Core web app to Azure using Visual Studio](/aspnet/core/tutorials/publish-to-azure-webapp-using-vs).
7979

8080
![Publish to Azure App Service](../debugger/media/remotedbg_azure_app_service_profile.png)
8181

82-
1. Open **Server Explorer** (**View** > **Server Explorer**), right-click on the App Service instance and choose **Attach Debugger**.
82+
1. In the Publish window, choose **Edit Configuration** and switch to a Debug configuration, and then choose **Publish**.
83+
84+
A Debug configuration is required to debug the app.
85+
86+
1. Open **Cloud Explorer** (**View** > **Cloud Explorer**), right-click on the App Service instance and choose **Attach Debugger**.
87+
88+
If Cloud Explorer is not available, open Server Explorer instead. Then, right-click on the App Service instance in Server Explorer and choose **Attach Debugger**.
8389

8490
1. In the running ASP.NET application, click the link to the **About** page.
8591

docs/debugger/unable-to-connect-to-the-microsoft-visual-studio-remote-debugging-monitor.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Unable to Connect to the Microsoft Visual Studio Remote Debugging Monitor | Microsoft Docs"
3-
ms.date: "08/24/2017"
3+
ms.date: "04/14/2020"
44
ms.topic: "reference"
55
f1_keywords:
66
- "vs.debug.error.remote_debug"
@@ -61,6 +61,18 @@ In the **Attach to Process** dialog box or in the project properties, make sure
6161

6262
If these values are correct and the message mentions **Windows Authentication** mode, check that the remote debugger is in the correct authentication mode (**Tools > Options**).
6363

64+
## <a name="connection_terminated"></a> The connection with the remote endpoint was terminated
65+
66+
If you are debugging an Azure App Service app, try using the [Attach Debugger](../debugger/remote-debugging-azure.md#remote_debug_azure_app_service) command from Cloud Explorer or Server Explorer instead of **Attach to Process**.
67+
68+
If you are using **Attach to Process** to debug:
69+
70+
1. In the **Attach to Process** dialog box or in the project properties, make sure that the remote computer name and the port number matches the name and port number shown in the remote debugger window. If incorrect, fix and try again.
71+
72+
2. Check the application log on the server (Event Viewer on Windows) for more detailed information to help resolve the issue.
73+
74+
3. Otherwise, try restarting Visual Studio with Administrator privileges, and then try again.
75+
6476
## <a name="invalid_access"></a> Invalid access to memory location
6577

6678
An internal error occurred. Restart Visual Studio and try again.

0 commit comments

Comments
 (0)