-
Notifications
You must be signed in to change notification settings - Fork 763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debug: expose --only-same-user in debug configuration #810
Comments
Do I understand correctly that delve gets started by vscode in your setup? What configuration do you use in your
Have you tried starting an instance of headless delve ( |
Hi thanks for reply, I added the launch.json in my first post. I will try by running my own instance of delve |
The "API server" string is an indiciation that delve server was started successfully for you. With logging enabled, you should have more noise under DEBUG CONSOLE thought. (If you start delve separately then instead of If no error message is displayed when delve crashes, how do you know that it crashed? |
@snigle I am going to change the title of this bug to add the same-user flag to our build configuration. |
Another option is to shell out |
Change https://golang.org/cl/280697 mentions this issue: |
What version of Go, VS Code & VS Code Go extension are you using?
go version
to get version of Gocode -v
orcode-insiders -v
to get version of VS Code or VS Code Insidersgo env
to get the go development environment detailsShare the Go related settings you have added/edited
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.launch.json
Describe the bug
Hello, we used to start vscode with remote ssh plugin in a docker container.
But we don't have access to
cat /proc/self/net/tcp
.So delve crash and extension don't display error message.
To avoid the error we need to pass the parameter
only-same-user
to false. But I didn't find any way to pass this param in the go extension.I found a workaround by patching delve code directly to force the default value to false :
Steps to reproduce the behavior:
Create docker container
Open vscode in remote ssh on the container
cat /proc/self/net/tcp
should return forbiddenTry to debug a simple test
The text was updated successfully, but these errors were encountered: