I am developing Windows C++/C# application running on Windows 7 and 10.

I am using Teamviewer 14 (Coporate license) to access to Customer's PC in other part of the world to perform troubleshooting.

Please would someone provide instruction how to perform remote debugging using Visual Studio 2017 or any earlier version ?

I understand that Teamviewer client can obtain the IP Address of the remote PC. Can I enter this IP Address in Visual Studio Remote debugger to connect up with this remote PC ? Would Firewall be an issue ?

Many thanks Song

  • Have the app send verbose logs to event viewer or a log file and then look it over. Otherwise, setup a machine emulating the remote OS, etc. and then troubleshoot that machine locally or via a VM, etc. rather than trying to troubleshoot remotely via Team VIewer Nov 8 '19 at 12:12
  • Often computers don't have a public IP (NAT router in between) and if that is not the case a firewall is in between blocking incoming connections. The only chance I see to get a connections is if you connect both computers to the same server via SSH. The customers computer exposes the debugging port via reverse port forwarding to the server SSHing into. Your PC could then also do port forwarding for that port.
    – Robert
    Nov 8 '19 at 12:49

You can start the VPN in TeamViewer. After the connection is established, you can attach the debugger to a process running on the remote computer like you do on your LAN.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.