Skip to content

Conversation

yannickowow
Copy link
Contributor

@yannickowow yannickowow commented Feb 27, 2021

This PR fixes #113922

Hi,
Here you will find a draft PR to support DataBreakpoint access type.
When right-clicking on a DataBreakpoint variable, you can by this way select an action based on DataBreakpointAccessTypes[] response.
By default, an empty array assumes Break When Value Changes (it was the current behaviour).

Here you will find a record about this new behaviour:

sampleWorkspace-1614455088109.mp4

For a better experience, I would suggest here a radiobutton instead of checkbox... Any ideas ?

I did update breakpointTests as well to ensure accessType is correctly set.

Thanks in advance !

@ghost
Copy link

ghost commented Feb 27, 2021

CLA assistant check
All CLA requirements met.

@isidorn
Copy link
Collaborator

isidorn commented Mar 16, 2021

@yannickowow thanks for your PR and sorry for the slow response.
I glanced over the PR and it looks good overall. First I would like to ask you do the following

  1. Can you please merge latest from main and resolve conflicts
  2. The updateDataBreakpoint work can be split up from the inital support of all accessTypes. Due to that it would be great if in this PR you could only leave the support for all accessTypes and all the updateDataBreakpoint work to be put in another PR. Once we merge this PR and once we gain enough user feedback we can consider merging in the other updateDataBreakpoint one

I hope my suggestion make sense and I wish you a nice day

@yannickowow
Copy link
Contributor Author

If I understood correctly, you are considering actions to support accessTypes but not updating them in Breakpoints view (used by updateDataBreakpoint) ?
If so, it is done. 👍
I did remove actions associated to DataBreakpoints in the Breakpoints view.

Regards.

@isidorn
Copy link
Collaborator

isidorn commented Mar 17, 2021

Great work, thanks again for your PR. I have left some comments in the code, once you tackle that let me know and I can do another review.

Since we will probably merge this in this milestone it might be cool to write a test plan item so we cover this. Here's a good template #79799 @yannickowow if you have time maybe you could write a test plan item and ping me @isidorn on it
Though it might be cool if mock-debug supported these new changes so we could write a test plan item using mock debug @weinand

@isidorn
Copy link
Collaborator

isidorn commented Mar 17, 2021

Fantastic work. Merging in, thanks a lot for your contribution ☀️

@isidorn isidorn merged commit 42af2c3 into microsoft:main Mar 17, 2021
@weinand weinand added debug Debug viewlet, configurations, breakpoints, adapter issues on-testplan labels Mar 22, 2021
@github-actions github-actions bot locked and limited conversation to collaborators May 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues on-testplan
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for editing 'accessType' property of data breakpoints
3 participants