Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remote Debugging in Visual Studio 2017

I am trying to do Remote debugging using Visual Studio 2017

I downloaded the Remote Tools for Visual Studio 2017 and installed it in the remote server. In the remote server firewall, I configured to allow Inbound & outbound for msvsmon. I also allowed inbound for

135, 139, 445 TCP  

137, 138,500, 4500 UDP

In my machine I configured Firewall to allow Inbound and outbound for Visual Studio 2017

In the visual studio, attach to process, I tried the below

enter image description here

I also tried using default connection type, but it is not able to connect to the remote machine. What am I missing?

I am adding few more details

the remote machine is running Windows Server 2012 R2 My machine is running on Windows 10, I am using Visual studio 2017

This is the error message that I am getting

enter image description here

I am running the msvsmon as administrator in the remote machine

In the server msvsmon is showing the server name:port Number, but in the visual studio I am connecting using its ip:port number. Hope that is ok

enter image description here

like image 735
Vignesh Subramanian Avatar asked Oct 11 '17 05:10

Vignesh Subramanian


People also ask

How do I Debug a remote process in Visual Studio?

You can attach the Visual Studio debugger to a running process on a local or remote computer. After the process is running, select Debug > Attach to Process or press Ctrl+Alt+p in Visual Studio, and use the Attach to Process dialog to attach the debugger to the process.

What is remote debugging?

In simple terms, remote debugging is debugging an application that runs in a place other than your local environment. This is usually done by connecting the remotely running application with your development environment.

How do I disable remote debugging in Visual Studio?

05 On the General settings panel, under Debugging, select Off next to Remote debugging setting to disable remote debugging using Microsoft Visual Studio for the selected Azure App Services web application. Click Save to apply the changes.


1 Answers

Change Connection type to Remote (no authentication) enter image description here

.

Change msvsmon.exe option to No Authentication

enter image description here

like image 123
Anil8753 Avatar answered Sep 22 '22 14:09

Anil8753