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

Enhancement: Add better default breakpoint icon #6188

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

EricHenry
Copy link
Contributor

@EricHenry EricHenry commented Mar 5, 2023

Summary

closes #5956

In #5952 @archseer and @filipdutescu suggested to use the same icon being used by the diagnostics for breakpoints. I also updated the default color to use the error color set by the UI theme.

Screenshot 2023-03-04 at 11 25 54 PM

EDIT:

Built on top of #2869

@archseer
Copy link
Member

archseer commented Mar 5, 2023

That just looks like a regular error now. I thought we picked a different icon? I can't find the thread right now

@pascalkuthe
Copy link
Member

pascalkuthe commented Mar 5, 2023

Duplicate of #5957 which includes an improved icon and a new highlight scope plus theme adjuatement.

See #5957 (comment) for what thus looks like

@filipdutescu
Copy link
Contributor

I meant adding NerdFont icons such as

image
image

making use of #2869, which would look a bit better than the current ones in #5957. What you did is a duplicate of my work, as @pascalkuthe and @archseer mentioned.

@EricHenry
Copy link
Contributor Author

@archseer @filipdutescu whoops sorry about that! I definitely misunderstood. The flow of the conversation was a bit confusing between the two issues.

@EricHenry
Copy link
Contributor Author

What are your thoughts on using the bug and stackframe arrow for the icons? Also I noticed that the breakpoint struct has information about conditionals and log messages, which seem to have icons for. What are your thoughts about using them?
Screenshot 2023-03-05 at 8 48 28 PM

Here is how it looks in the code with the debug... bug.
Screenshot 2023-03-05 at 8 45 12 PM
Screenshot 2023-03-05 at 8 46 58 PM

@pascalkuthe
Copy link
Member

the bug looks a bit noisy to me.

For specical breakpoints (condition, log, data, function,...) there are already icons:

image

I am not sure what a data breakpoint is supposed to be so we could just use that icon for normal breakpoints. Alternatively just the various nerdfont cricels seem like a good option:

image

@EricHenry
Copy link
Contributor Author

EricHenry commented Mar 6, 2023

Thanks for the feedback!

For specical breakpoints (condition, log, data, function,...)

We don't have those codified yet, I'll add those icons in and update the logic in the function that determines the icon for the breakpoint.

the bug looks a bit noisy to me.

Yeah, I agree. I'll use the regular filled circle for the normal breakpoints.

@filipdutescu
Copy link
Contributor

filipdutescu commented Mar 6, 2023

Stack frame one is exactly the kind of icon I had in mind adding the task. Great catch!

Also the stackframe with breakpoint in it for when you have a breakpoint on the current line is perfect

@EricHenry EricHenry force-pushed the enhancement/better_breakpoint_icon branch from 509d87d to 5cd2a4e Compare March 18, 2023 19:18
@EricHenry
Copy link
Contributor Author

the breakpoint struct has log_message and conditional as two separate options. So there is a chance that the breakpoint struct has both fields set to Some(String). For the nerdfont icons, breakpoint_conditionals and breakpoint_logs have their own icons. if it is the case that both can be set to Some which icon should take precedent?

@filipdutescu
Copy link
Contributor

I would say that conditional breakpoints take precedence. To me it is very important to know when/if a breakpoint will be hit, to plan how my debugging session should go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add better breakpoint icons
5 participants