-
Notifications
You must be signed in to change notification settings - Fork 29.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
Inline action for "edit condition" action in Breakpoints view #113805
Comments
Yes, enabling to edit the condition outside of a debug session would be helpful because it makes the feature more discoverable. In addition it better aligns exception breakpoints with source breakpoints which already support 7/24 condition editing. (Clarification: exception breakpoints are provided by a DA on "first contact" and then they are shown as long as the same DA is used. So condition editing should only be enabled if the DA has returned the corresponding capabilities on first contact and then this enablement is persisted and can be used outside of a debug session) And using inline actions is another thing to try (but only after implementing the 7/24 condition editing). |
Makes sense, let me assign to Jaunary to investigate more into this. |
@misolori makes good sense, thanks! |
I just verified that we actually already have 24/7 condition editing, seems like I was thinking about when coding this up before Christmas break 👏 Since we have the 24/7 condition editing, I will now look to add the inline action using the Icon Miguel proposed. |
@isidorn yes indeed, Mock Debug has 24/7 condition editing. |
@yannickowow thanks a lot for trying it out and for providing feedback. I have just pushed a fix for this issue which you found. Thanks! |
Hi Thanks! |
@yannickowow that's a good catch. However for now we simply did not implement this, I was not aware of debuggers that would want condition on data breakpoints. Though I see that it makes good sense. |
Thanks. |
As @bpasero suggested we could use an inline action for the "Edit Condition" action in the breakpoints view.
This inline action would appear on hover for exception breakpoints, function breakpoints, data breakpoints.
Currently we only allow to edit conitions once debugging is started and we know what debug adapter we are using. And we only show these actions if the debug adapter supports the corresponding capabilites. We might also want to consider to show this actions also when not debugging.
fyi @connor4312 @weinand
@misolori for icon ideas
The text was updated successfully, but these errors were encountered: