You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Debug Adapter Protocol] - Sending BreakpointEvent for new breakpoints do not work for data breakpoints #406
When attempting to inform VSCode that a new data breakpoint has been created, for instance by using the debug console (so it doesn't go through the normal route of clicking on the watch variables etc), VSCode never registers it in the "Breakpoints" list - it only seems to be able to register them if they are normal breakpoints (and as such contains the source information).
So for instance, if I set a breakpoint using the debug console;
My interpretation is that the existing breakpoint event in DAP can't do this, it would have to be extended to let you send along the info from dataBreakpointInfo as well. Does that sound right?
My interpretation is that the existing breakpoint event in DAP can't do this, it would have to be extended to let you send along the info from dataBreakpointInfo as well. Does that sound right?
Probably true. So a better place to request this feature would be in the DAP-github?
Supporting this is a bit ugly because we have no way to go backwards from a dataId to the relevant info that editors might need, such as a description or alternative accessTypes. So there are two options:
Also require properties DataBreakpointInfoResponse & DataBreakpoint from the DA
Add an additional method to look up information from a data ID
Neither are very nice. The latter is probably nicer, but I hesitate to add a whole other request for a very niche flow (we've had no other requests for this.)
Since this issue was written there have been additional capabilities added, under supportsDataBreakpointBytes, which might solve the use case to allow clients to implement the desired flows without additional protocol changes.
Activity
roblourens commentedon Jun 17, 2023
My interpretation is that the existing breakpoint event in DAP can't do this, it would have to be extended to let you send along the info from
dataBreakpointInfoas well. Does that sound right?connor4312 commentedon Jun 17, 2023
I concur
theIDinside commentedon Jun 25, 2023
Probably true. So a better place to request this feature would be in the DAP-github?
connor4312 commentedon Jun 26, 2023
Rob already moved this issue to the DAP repo 🙂
theIDinside commentedon Jun 26, 2023
Thanks a bunch! I'm going to close this issue then.
connor4312 commentedon Jun 27, 2023
This issue is now on the DAP repo, so we should keep it open to track
connor4312 commentedon Aug 7, 2024
Supporting this is a bit ugly because we have no way to go backwards from a
dataIdto the relevant info that editors might need, such as adescriptionor alternativeaccessTypes. So there are two options:DataBreakpointInfoResponse & DataBreakpointfrom the DANeither are very nice. The latter is probably nicer, but I hesitate to add a whole other request for a very niche flow (we've had no other requests for this.)
Since this issue was written there have been additional capabilities added, under
supportsDataBreakpointBytes, which might solve the use case to allow clients to implement the desired flows without additional protocol changes.connor4312 commentedon Dec 11, 2024
I'm going to close this issue as it's a pretty gnarly flow and we haven't heard much interest in this.