raix / vscode-perl-debug

LOOKING FOR MAINTAINERS. Perl debugger extension for visual studio code
MIT License
63 stars 35 forks source link

Example Remote Setup? #96

Open Melchester opened 5 years ago

Melchester commented 5 years ago

Apologies for wasting your time with this. But I was hoping you could point me at an example launch.json for remote debugging. I have my websites on DreamHost so I'm wondering if remote debugging is even possible in that environment.

hoehrmann commented 5 years ago

@Melchester: When you launch a remote debug session, the Perl debug extension will listen on a TCP port and expect the Perl debugger to connect to it. You then launch PERLDB_OPTS="RemotePort=host:port" perl -d example.pl. The hard part is enabling such a TCP connection. That might involve SSH port forwarding, changing router and firewall settings, and/or similar things.