Unable to use Golang debugger in codespaces as a non root user #51909
Unanswered
gdt-printerface
asked this question in
Codespaces
Replies: 1 comment 1 reply
-
|
Hello there! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
Hi everyone. I have been experimenting quite a bit with Github Codespaces now after I have been using devcontainers since it release. For the most part switching to Codespaces has been seamless, but I ran into a problem;
With the devcontainer.json found bellow (figure 2) I am running into an error (see figure 1). This in itself is not a major problem as it can be resolved by running
sudo sh -c 'echo 0 > /proc/sys/kernel/yama/ptrace_scope', but I'm mainly wondering why - when running the devcontainer locally - I do not encounter the same issue, as a matter of fact, the /proc/sys/kernel/yama/ptrace_scope file does not exist at all on the local devcontainer. Perhaps someone is able to explain this discrepancy in the creation of a local devcontainer vs a Codespace.figure 1

figure 2
.vscode/launch.json
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Attach to Process", "type": "go", "request": "attach", "mode": "local", // processId is retrieved from running go program "processId": 1806 } ] }Beta Was this translation helpful? Give feedback.
All reactions