-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Implement conditional function breakpoints #9106
Comments
@edumunoz oh I see, the question was about how to add the 'condition' and not how to add the 'function breakpoint'. Sorry, I missed that. |
@isidorn I don't see a reason why a context action 'Edit Condition' in the breakpoints view wouldn't work, right? |
The UI for editing breakpoints is bound to the editor, thus if a breakpoint is in file a.txt, then editing that breakpoint would open that file and show the breakpoint widget on top of the line where the breakpoint is. That is the reason why we did not include 'edit breakpoint' in the viewlet, but only in the editor. The issue here is that function breakpoints are not tied to an editor or a line, so I am not sure where to show the breakpoint widget in that case. We could just show it on top of the active editor, though then it is not in pair with the regualr edit breakpoint experience. Suggestions welcome |
duplicate of #3646 |
The debugging protocol for VSCode supports conditional function breakpoints.
However, I don't see how this can be achieved through the VSCode UI, since adding a condition is done through the glyph in the editor, but function breakpoints don't have a glyph:
A solution to match the current experience for line breakpoints would be to implement #7262.
Is there a reason why there is no action to add a condition to a breakpoint from the Breakpoints panel?
@weinand @isidorn
The text was updated successfully, but these errors were encountered: