Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

[Breakpoints] show breakpoint on hover #5603

@jasonLaster

Description

@jasonLaster

I recently was looking at "Continue to Line" for time travel debugging. CtL got me thinking it about two things:

  1. it would be nice to have a hover effect in the gutter. For instance, hovering on a line where you can add a breakpoint shows a light breakpoint. With continue to here, hovering on a line that you can jump to with the alt key pressed could show a light background color indicating you can jump there.

  2. the way we currently show empty lines (greying out the line number). Can create a zebra effect that is quite distracting. Most of time, the user doesn't care which lines are empty or not, bu the color difference is always visible.

Lastly, I think disabling some lines so that you can't add a breakpoint or jump is helpful, but we just need a soft nudge at the right moment. The hover effect should validate whether it's possible to jump or set the breakpoint, without being distracting at other times.

Breakpoints On Hover

In this example, the user is hovering on 127 and can add a breakpoint. The user is also hovering on line 133 with the alt key pressed and can jump to 133.

Screen Shot 2018-03-04 at 10.59.10 PM.png

Empty Lines

Screen Shot 2018-03-04 at 10.40.37 PM.png


Other options:

  • remove the opacity, perhaps the user doesn't need a visual indicator that the line is valid
  • remove the opacity, and use a different visual indicator like bold the line number on hover

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions