vscode-php-debug icon indicating copy to clipboard operation
vscode-php-debug copied to clipboard

[Enh] Add [external] tunneling support

Open AnrDaemon opened this issue 5 years ago β€’ 7 comments

Even just a command to launch external tunnel program to receive debugging connection would simplify setup. Right now, I launch SSH tunnel manually to open the session for debugging.

AnrDaemon avatar Jul 17 '18 15:07 AnrDaemon

Hi

I agree, It would be very convenient to use ssh port forwarding features to easily debug a remote server

btry avatar Sep 28 '18 07:09 btry

+1

marabesi avatar Jan 02 '19 09:01 marabesi

I feel this should be responsibility of a different VS Code extension. You could also use tasks.json, I'm sure there is a way. Also, if possible, I strongly suggest VS Code Remote SSH.

zobo avatar Feb 02 '22 09:02 zobo

I tried remote SSH, it is inconvenient on intermittent connection. Yes, I can configure shell profile as SSH with tunneling. Guess I have to…

AnrDaemon avatar Feb 02 '22 12:02 AnrDaemon

Yes, if the connection is unstable then it can probably be a pain. If you don't have a defined workflow, you can probably make a task like here https://code.visualstudio.com/docs/editor/tasks and execute ssh with the propper -L or -R parameters.

I think you could also couple this with preLaunchTask in launch.json. https://code.visualstudio.com/docs/editor/debugging#_launchjson-attributes

Good luck!

zobo avatar Feb 02 '22 13:02 zobo

Yes, that's a good idea. Worth adding to the documentation, don't you think?

AnrDaemon avatar Feb 03 '22 07:02 AnrDaemon

I'll leave it open, and figure out where to document cases like this... I think it's a bit too much for the main README, but I should definitely make a Wiki or a "product page".

zobo avatar Feb 03 '22 08:02 zobo