-
Notifications
You must be signed in to change notification settings - Fork 30k
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] Jump to Cursor feedback #75578
Comments
FYI the first issue is also a problem for the C# DA. Also, I think the answer for the second question is that target ids should be valid until the next continue. Though specifying this in the spec sounds reasonable to me. |
@vadimcn @gregg-miskelly thanks for feedback. @weinand leaving up the other two issues for you. |
The general rule for ID lifetime in DAP is:
I have created an issue in the DAP-repo for the clarification request: microsoft/debug-adapter-protocol#60. Round-tripping adapter-defined data is not an option any more because the DAP already uses IDs to allow for communicating arbitrary data between "GotoTarget" and "Goto" requests. In addition it is cheaper to round-trip only an ID instead of the whole data. |
Assigning to @isidor because he provided the only real code fix for the three issues. |
@vadimcn @gregg-miskelly can you please verify the 1) is fixed for you so I add a verified label. Thanks |
LGTM |
Yeah, #1 looks fixed. |
Thanks. Adding verfieid label. |
After having tried to implement the new "Jump to Cursor" functionality, I'd like to share some feedback:
GotoRequest
. BecauseGotoTargetsRequest
does not specify which thread will be jumped, it is not possible to validate locations at that stage. (For example, language runtime may not allow moving execution point outside of the current function).GotoTarget
not not clearly spelled out in the DAP spec. Does adapter need to remember ids of allGotoTargets
it had ever returned?GotoTarget
contained adapter-defined data, that were round-tripped via subsequentGotoRequest
. This way adapter wouldn't need to remember GotoTarget<->id association at all.The text was updated successfully, but these errors were encountered: