You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
Repository navigation
This repository was 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
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 to launch the code remotely. This is the goal:
#!/usr/bin/env bashset -x
ssh -A user@jumpbox.com bash -c "ssh -A otheruser@corp-network-host \"kubectl exec -it podname -n namespace bash -c '$@'\""
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 it bin/${wrapper} bundle exec rdebug-ide -- ${env:GEM_HOME}/bin/puma.
Introduction of wrapper for request=launch is imperative of allowing remoteWorkspaceRoot to accommodate for different paths on source host and launch host, just like it's a case for request=attach.
Some extensions already allow this. For example, Perl Language Server allows perl.sshCmd in settings.json, and I configured it to execute the Perl Language Server inside a docker-compose container.
Activity
github-actions commentedon Dec 6, 2020
This issue has not had activity for 30 days. It will be automatically closed in 7 days.
Nowaker commentedon Dec 6, 2020
Don't you dare, bot.
exocode commentedon Dec 26, 2021
End of 2021. Any news on how to debug within a Kubernetes cluster?