-
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
Unreadable arguments and "debugging optimized function" warning #1368
Comments
Duplicate of golang/go#27681 |
it still happens to me after golang/go#27681 has been closed |
Same, using the integrated debugger of Goland. The binary is built without optimization, and not all variables are readable. Using the build flags (go 1.12): Error: |
|
this is amazing. it should be prominently displayed in the docs, as delve can be borderline unusable without it. |
This still happens to me on macOS
|
Environment
dlv 1.1.0 (
master
@ 4e4ed02)go 1.11.1
os darwin/amd64
What did you do?
With the following test code:
https://gist.github.com/antoineco/262c7dc7860ddd25ef5cd124d2a8ceb3
I ran:
What did you expect to see?
The
args
command prints the value of the function arguments.What did you see instead?
Warning: debugging optimized function
is printed and function arguments are unreadable.Important note
If one un-comments the commented out lines inside
issue.go
, the warning will not appear, and Delve will consistently print function arguments:The text was updated successfully, but these errors were encountered: