-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Function breakpoints - protocol allows condition but no UI to set condition #3646
Comments
You are correct, function breakpoints currently can not have a condition. |
Thanks for the confirmation! Glad to hear it is a planned feature. |
Ropened because function breakpoints do not appear in the gutter and provide no UI to add/edit their condition. |
This iteration we focus on issue grooming. This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider. If you wonder what we are up to, please see our roadmap and issue reporting guidelines. Thanks for your understanding and happy coding! |
@weinand should this really be closed? The feature is supported in the DAP, it would be nice if it was also surfaced in the UI. |
Yes, this is a valid feature request and we should address it because bringing VS Code's debugger UI on par with the Debug Adapter Protocol is actually on the VS Code roadmap. |
Let's assign to this milestone for the inital investigation. Ideas on how the UX would look like are welcome. I would probably go with a similar approach for function breakpoints |
Hi,
Thanks |
@YannickMeeus thanks for jumping in and for sharing ideas. |
Yes, you are right about vertical space, I missed that point. |
Here's an idea:
I believe that in practice this will work nicely. @weinand @connor4312 @yannickowow let me know what you think? I can also present this in the UX meeting today. |
@isidorn editing an object (here a function breakpoint) in a random unrelated editor is a kludge. I see two options:
|
@weinand thanks for feedback. Editor breakpoint widget can not be rendered in the breakpoints view, it requires an editor the way it is implemented. So let's go with option 1 and use the same UI as done for exception breakpoints, and have two context menu options as @yannickowow proposed |
I have pushed a first version of this. Please try it out with VS Code insiders from tomorrow. A UI corner case is when a Function Breakpoint has both a Hit Count and a Condition. I try to render both, and am happy with the final result (can be seen in the gif). What is not shown in this demo: the |
It looks good and intuitive to me ! Thanks a lot ! I'll try this when available |
Great, looking forward to feedback. |
Maybe I'm missing something in the debug UI experience but I see no way to add a condition to a function breakpoint even though the debug protocol supports it.
The text was updated successfully, but these errors were encountered: