简体   繁体   中英

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

在此输入图像描述

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

在此输入图像描述

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

在此输入图像描述

  • Install from : https://www.visualstudio.com/downloads/#remote-tools-for-visual-studio-2017 to the remote machine (Be sure of your source and the version of your VS)
  • Check if "Visual Studio Remote Debugger" and "Visual Studio Remote Debugging Monitor" are allowed
  • Don't forget to Run it it's called "Remote Debugger"
  • And your exe
  • From your solution : Debug/Attach to Process...
  • Default : yourip:4022
  • Select your process then Attach

Change Connection type to Remote (no authentication) 在此输入图像描述

.

Change msvsmon.exe option to No Authentication

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM