-
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 throws "could not launch process: could not find external debug info file" #1485
Comments
It means there is not any debug symbols. |
The binary is probably built with the |
What @chainhelen and @dlsniper said. |
Hello! I am building my executable without the
and I still get the error |
Then you are not stripping the DWARF info, you are stripping all debug info as well, see: https://golang.org/cmd/link/
|
I am getting the error "Could not open debug info", when I attach a process in DLV, this is how I am building - go build -gcflags=all="-N -l" -v -o file.go. root@jj:/usr/local/go/bin# ./go version |
Please answer the following before submitting your issue:
Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.
What version of Delve are you using (
dlv version
)?Delve Debugger
Version: 1.2.0
What version of Go are you using? (
go version
)?go version go1.11.5
What operating system and processor architecture are you using?
linux/amd64
What did you do?
root@cloudcome:/home/cloudcome/go_projects/src/k8s.io/kubernetes/_output/bin# dlv exec ./openapi-gen
What did you expect to see?
Type 'help' for list of commands.
(dlv)
What did you see instead?
could not launch process: could not find external debug info file
The text was updated successfully, but these errors were encountered: