Remote Debugging
- On Remote Computer:
- Install remote debug (for VS 2013): rtools_setup_x64.exe
- Or for 2017 VS: VS_RemoteTools.exe
- Run (As Administrator!): Start->Remote Debugger; Note: Make sure there is no firewall or it was configured properly(MSVSMON.EXE should be in exceptions!!!).
- Go to Tool\Permission.. menu and add Domain Users.
- On Client Computer:
- Visual Studio -> Tools -> Attach to Process.
- Select Transport to “Default”
- Click Find -> you will see remote machine
- Press refresh button
- Select Process to debug
- Press OK.
In case you face "invalid access to memory location”:
Change the debug port on the remote machine (Tools --> Options). Like 63342 to avoid colliding with any existing ports but you just need to use any unused one. Once changed, you should be able to connect.