-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
DLV not starting with: "Could not launch process: fork/exec: function not implemented" #2910
Comments
This is a duplicate of docker/for-mac#5191 or something very similar. Nothing we can do anything about. |
PS. it looks like qemu has an option to act like a gdbserver; delve also implements the gdb remote server protocol (although it is not directly accessible through the command line) so it should be possible, with some work, to get docker to start qemu in gdbserver mode and then tell delve to connect to it. I don't know the extent to which this would work, delve's gdb server backend does assume that it is running on the same os and architecture as the gdbserver it is connecting to and that would certainly have to be changed. |
same issue, wish to find solution😭 |
Please answer the following before submitting your issue:
Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.
dlv version
)?Delve Debugger$Id: d85f1f6b736db99a1c239c34fd4a081dcff08a3c $
Version: 1.8.1
Build:
What version of Go are you using? (
go version
)?go version go1.17.7 linux/amd64
What operating system and processor architecture are you using?
Host system:
Docker Container
In the container I build my binary with:
go build -gcflags "all=-N -l" -o tapi cmd/tapi/main.go
Then I ran:
dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./tapi
I also installed the same dlv and go version directly on my host system and there it is working with the same commands. There is can see:
The text was updated successfully, but these errors were encountered: