Skip to content

remote attach: use absolute /bin/sh path on Linux#10765

Merged
sean-mcmanus merged 1 commit intomicrosoft:mainfrom
bluca:bin_sh
Apr 4, 2023
Merged

remote attach: use absolute /bin/sh path on Linux#10765
sean-mcmanus merged 1 commit intomicrosoft:mainfrom
bluca:bin_sh

Conversation

@bluca
Copy link
Copy Markdown
Member

@bluca bluca commented Mar 31, 2023

When using machinectl as a transport to connect the debugger to a nspawn container, we need to pass full paths when running commands, as that's what machinectl expects. Use /bin/sh when running on Linux. This allows connecting VSCode to nspawn containers.

https://www.freedesktop.org/software/systemd/man/machinectl.html https://www.freedesktop.org/software/systemd/man/systemd-nspawn.html

Comment thread Extension/src/Debugger/attachToProcess.ts Outdated
Comment thread Extension/src/Debugger/attachToProcess.ts Outdated
When using machinectl as a transport to connect the debugger to
a nspawn container, we need to pass full paths when running commands,
as that's what machinectl expects. Use /bin/sh when running on Linux.
This allows connecting VSCode to nspawn containers.

https://www.freedesktop.org/software/systemd/man/machinectl.html
https://www.freedesktop.org/software/systemd/man/systemd-nspawn.html
@bluca
Copy link
Copy Markdown
Member Author

bluca commented Apr 4, 2023

@WardenGnaw @sean-mcmanus thanks for the reviews and approvals - who can I ask about clicking the merge button?

@sean-mcmanus sean-mcmanus merged commit 6cabb39 into microsoft:main Apr 4, 2023
@bluca bluca deleted the bin_sh branch April 4, 2023 17:35
@github-actions github-actions Bot locked and limited conversation to collaborators May 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants