-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
v4.24.9 breaks my ability to debug using delve #1734
Comments
I'm guessing this is related to #1702? |
Can you provide more details, like the content of the |
@uubulb sorry for the delay, missed this in my email. there's a lot of detail in go-delve/delve#3825, I'll do my best to summarize here. here are the logs I was seeing:
here was the PR that fixed it for me: grafana/loki#14437 by downgrading this library here is the main.go from before my commit to fix it by downgrading the dependency. |
@trevorwhitney how did you figure out that the problem is related to |
I went back in the Loki code to a time I remember the debugger working, and it did, so I did a I'll try out your example in a bit and let you know. |
interesting, I am able to run that simple program with the debugger. so I tried bumping |
follow up, what's the Before this change, I could run the debugger with
|
Are you able to debug this program with
From a quick check it switches between their pure Go implementation and one using cgo, respectively https://github.com/ebitengine/purego/tree/450319b71c523c3716a29e3068ef333583744aea/internal/fakecgo and https://github.com/ebitengine/purego/tree/450319b71c523c3716a29e3068ef333583744aea/internal/cgo with Diving deeper than that will probably be way above my head. This issue will probably have to be raised against the purego and/or delve developers I think, we are just (new) users of that library. |
Describe the bug
We use this library in grafana/loki. After upgrading from
v4.24.0-alpha.1
tov4.24.9
, I lost my ability to use devle's DAP server on the Loki codebase. We've since downgraded tov4.24.8
and it works fine. I'm on Mac OS 15.0.1 (arm64), go 1.23.2, and delve 1.23.1. I wish I knew more about how delve worked to tell you what about that change broke it, but all I know is changing this specific dependency makes the difference.To Reproduce
Use delve Dap before and after this version on a
main.go
that depends on it. I usenvim-dap
andnvim-dap-go
, so I'm not sure how to invoke the Dap manually, sorry I can't be more helpful. I'd be happy to try out any fixes in my environment to see if the problem persists.Expected behavior
[A clear and concise description of what you expected to happen.]
Environment (please complete the following information):
ver
]/etc/os-release
and the result ofuname -a
]sw_vers
anduname -a
freebsd-version -k -r -u
anduname -a
]uname -a
]The text was updated successfully, but these errors were encountered: