Skip to content
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

[🚀 Request] Add new feature to interact with conditional breakpoint input box #691

Open
sergiuilie opened this issue Mar 15, 2023 · 2 comments
Labels
enhancement New feature or request good-first-issue Good for newcomers
Milestone

Comments

@sergiuilie
Copy link

sergiuilie commented Mar 15, 2023

What is the feature you are missing?
Trying to write a test where I can validate a conditional breakpoint and I came across multiple issues, there is no direct API to set a conditional breakpoint but I thought that I have a workaround for that:

  1. Go to the line you need the breakpoint
  2. Execute await new Workbench().executeCommand('Debug: Add Conditional Breakpoint');
  3. Type into the 'Expression' box that is currently open

until, I came across point number 3 where I can not type into that box, as it is not an input box or any element that I can catch using findElement or any other method, apparently is a span that does activate only when you type in it.

image

If we can add a new API under the EditorView functionality that can be used to toggle a conditional breakpoint, something like toggleConditionalBreakpoint(line: number, expression?: string, hitCount?: number, logMessage?: string)

Could you provide some example of usage?
I can present some use cases:

  • Interacting with the message box that appears on VSCode when you set an invalid conditional breakpoint.
  • Validating the hit counts on a specific breakpoint in a loop.
@sergiuilie sergiuilie added enhancement New feature or request new-issue New issue which was not discussed yet labels Mar 15, 2023
@djelinek djelinek removed the new-issue New issue which was not discussed yet label May 18, 2023
@djelinek djelinek added this to the BACKLOG milestone May 18, 2023
@sergiuilie
Copy link
Author

I wrote an article regarding my experience with your extension, check it out MEDIUM ARTICLE LINK

@djelinek
Copy link
Collaborator

Thank you for sharing your article @sergiuilie !

@djelinek djelinek changed the title [Request] Add new feature to interact with conditional breakpoint input box [🚀 Request] Add new feature to interact with conditional breakpoint input box Oct 17, 2023
@djelinek djelinek added the good-first-issue Good for newcomers label Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good-first-issue Good for newcomers
Projects
Status: Backlog
Development

No branches or pull requests

2 participants