This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
Debugging: Allow to define a wrapper to make it SSH, Docker, docker-compose and Kubernetes friendly #678
Labels
feature-request
Adds currently unsupported functionality
request=launch
in.vscode/launch.json
is for running the code locally.request=attach
is for attaching to a remote rdebug-ide process . These two approaches make it impossible tolaunch
the coderemotely
. This is the goal:And
bin/launch-wrapper.sh
is:or
and even multiple hops:
When
wrapper
is present, the extension will construct the whole command as it would normally do, e.g.bundle exec rdebug-ide -- ${env:GEM_HOME}/bin/puma
, but pass it as arguments to the wrapper, making itbin/${wrapper} bundle exec rdebug-ide -- ${env:GEM_HOME}/bin/puma
.Introduction of
wrapper
forrequest=launch
is imperative of allowingremoteWorkspaceRoot
to accommodate for different paths on source host and launch host, just like it's a case forrequest=attach
.Some extensions already allow this. For example, Perl Language Server allows
perl.sshCmd
insettings.json
, and I configured it to execute the Perl Language Server inside a docker-compose container.The text was updated successfully, but these errors were encountered: