-
Notifications
You must be signed in to change notification settings - Fork 769
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: be explicit about supporting conditional breakpoints #781
Comments
I'll add the tests update the configuration for the old debug adapter. |
Change https://golang.org/cl/262346 mentions this issue: |
Set supportsConditionalBreakpoints to be true on initialization to let clients of the debug adapter know that we provide this capability. Test that the capability is true and run a simple test for stopping on conditional breakpoints. Updates #781 Change-Id: I7b1dd5156fd346bb293582914fd809fabed368d1 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/262346 Trust: Suzy Mueller <[email protected]> Run-TryBot: Suzy Mueller <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Polina Sokolova <[email protected]>
Change https://golang.org/cl/264198 mentions this issue: |
Related #822: initializeRequest is still handled by the thin adapter; it's desirable to forward this to delve dap #794: the stable version of delve may not have the capability so this can be a lie if we set it now. OTOH, we are currently operating with an implicit assumption - users should use the latest master version of delve to use. So, I think setting this true isn't too bad. cc @polinasok |
I will remove this from v0.18.0 milestone, and let it be tracked as a DelveDAP bug. |
I mentioned setting this in debugAdapter2 in my opening description, but technically that's a separate issue and can be generalized to all new capabilities. As @hyangah reflected above, there are multiple options here for addressing this, so let's move the tracking/discussion for the long-term solution to another issue #844 that could be an umbrella for comparing and contrasting these options. |
Thanks for the followup @suzmue and @polinasok . I will close this and place it back to v0.18.0 milestone for archive purpose. |
According to the dap spec:
Our debug adapter does not set this capability on initialization, but it does appear to support conditional breakpoints (via "Edit Breakpoint"). We should set the capability and add tests for this to solidify the support. This way when the breakpoint is set, it won't have the "!" and an error message on hover, which are misleading because it will actually work.
We would also need to set this correctly in debugAdapter2 as well as it reports capabilities before dlv is launched. This feature has recently been added to dlv-dap (now tracked under #844)
The text was updated successfully, but these errors were encountered: