-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
Support for editing 'accessType' property of data breakpoints #113922
Comments
@yannickowow thanks for your request and thanks for your PR, I will comment here for both. Overall I think this makes a lot of sense, however since not a lot of debug extension use data breakpoints I would suggest the following approach:
If we decide to go down this approach then my suggestions are the following:
@weinand @yannickowow Let me know what you think. I personally like this approach because:
|
@isidorn Why is there a need for having contributable commands for DataBreakpoint access types? The Today VS Code only show this context menu action (which is basically for the "write" access type): When starting to respect the |
Actually, my PR is "updating" the current In my opinion, adding contributable commands for breakpoints can be great (!), but I do not think it will (or can) replace integrated commands, in order to respect DAP implementations. Removing currently supported commands might suggests a DAP update, or it might suggests that Visual Studio Code will not fully implement this protocol... To do my implementation, I modified current supported command to be aware of
When AccessTypes returns ['readWrite', 'write'] I did assume the previous implementation was a "default" one, and then returning an empty array is equivalent to "write" ("Break When Value Changes") Regards. |
@yannickowow Yes, a missing "accessTypes" property or an empty array means "write". And you are right, today VS Code does not fully implement the spec. (Note to myself: why is there a "readWrite" value if "accessTypes" is already an array which allows to specify |
I do agree with what you are saying, that in order for VS Code to fully implement the Spec these should be integrated commands. I leave this decision to @weinand, just my hunch was that this was better suited in an extension and that the initial Data breakpoint support that we already have is enough - I did not get a single user (not extension writer) issue regarding data breakpoints for example so I am doubting their popularity. Once users start using data breakpoints I would be more passionate about adding further data breakpoints features. Though I might be wrong, just sharing my thoughts. |
@isidorn The "Julia" team is asking for "accessTypes" support. I will dig out the issue... From the VS Code roadmap:
In this specific case I think the missing functionality of our current implementation is very small: and optionally showing the three missing actions does not involve lots of code. On the contrary: delegating the implementation to an extension would require much more effort on our side because of missing extension APIs. |
Makes sense to me. I was just raising my concerns. |
Regarding #83649 ( @isidorn )
As discussed in previous issue about DataBreakpoints support, it can be great if VS Code can surface a user interface to create and edit Data Breakpoints regarding to their attributes, such as
read
,write
,readWrite
for access type andcondition
/hitCondition
.Thanks
The text was updated successfully, but these errors were encountered: