https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging
https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging-csharp
Requirements
The remote debugger is supported on Windows 7 and newer (not phone) and versions of Windows Server starting with Windows Server 2008 Service Pack 2. For a complete list of requirements, see Requirements.
Note:Debugging between two computers connected through a proxy is not supported. Debugging over a high latency or low bandwidth connection, such as dialup Internet, or over the Internet across countries is not recommended and may fail or be unacceptably slow.