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
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:
Go to the line you need the breakpoint
Execute await new Workbench().executeCommand('Debug: Add Conditional Breakpoint');
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.
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.
The text was updated successfully, but these errors were encountered:
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
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:
await new Workbench().executeCommand('Debug: Add Conditional Breakpoint');
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.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:
The text was updated successfully, but these errors were encountered: