★ wanayoo — archive 1999 https://github.com/firefox-devtools/debugger/issues/8068Nouvelle recherche | Portail wanayoo
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

Notify about enabled breakpoints/pause-on state in panel #8068

Open
digitarald opened this issue Mar 4, 2019 · 6 comments
Open

Notify about enabled breakpoints/pause-on state in panel #8068

digitarald opened this issue Mar 4, 2019 · 6 comments

Comments

@digitarald
Copy link
Contributor

@digitarald digitarald commented Mar 4, 2019 •

Overview: Opening the Debugger and pausing unexpectedly can be frustrating – as the Debugger offers many options to pause and some can be hidden depending on the UI state. The Debugger should be pro-active in informing the user about

User Stories:

  1. When having Pause on checkbox or breakpoint enabled in the Debugger, I want to see it in the Debugger without opening the right accordion, so that I know which pausing options are currently switched on.
  2. When having a pausing options (pause on or breakpoint) in the Debugger, I want the Debugger panel tab to show some special state, so that I am aware that the Debugger could pause at some point.

2nd is a stretch goal, but could inform how the 1st story is addressed.

Brainstorming

We probably need some UX to provide an active state for the accordion panel headers; using color, font styling, count (enabled breakpoints) and/or an icon.

Chrome shows active state for
Enabling throttling: image
Enabled filters image image

Collected ideas

  1. Colored active icon in the panel header.
    • Info ℹ️ is already taken for MDN
    • ⚡️ for powered on?

⚠️ This issue still needs requirements. Please discuss and propose ideas in the comments to help define the requirements before claiming this issue.

@darkwing
Copy link
Contributor

@darkwing darkwing commented Mar 4, 2019

A few thoughts:

  1. We'd greatly benefit from having the "why paused" block much higher in the right sidebar accordion

  2. The red debug line of an error somewhat communicates why paused

  3. I'd love UX's idea for how to represent those options outside of the sidebar

@digitarald
Copy link
Contributor Author

@digitarald digitarald commented Mar 5, 2019

Added some more ideas to the description.

@fvsch
Copy link
Member

@fvsch fvsch commented Mar 5, 2019

The red debug line of an error somewhat communicates why paused

How often do we expect that users may not be on that particular file and line, though?
(As a side note, this only works for users without sight impairments. Not sure that the complementary solutions we're brainstorming would improve that, though.)

@fvsch
Copy link
Member

@fvsch fvsch commented Mar 5, 2019

Some "Debugger" icon variants I did the other day, which could reflect the Debugger's current state in the toolbox tab. We could also use the state information in the tab's title attribute. Currently it says "JavaScript Debugger", and it could say "JavaScript Debugger (paused on breakpoint)" for instance.

debugger-toolbox-icons

@jasonLaster
Copy link
Contributor

@jasonLaster jasonLaster commented Mar 5, 2019

@fvsch that looks great

@digitarald
Copy link
Contributor Author

@digitarald digitarald commented Mar 5, 2019

This is great and maybe can inform both the 1st and 2nd point. How would an icon look like for "has breakpoints active"; maybe that could be re-used in both the toolbox panel header and the accordion headers.

If not an icon, another idea would be a simple counter badge on the panels, showing how many pausing options are enabled. Without context, it might still need some icon or label to explain what it means.

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

Successfully merging a pull request may close this issue.

None yet
4 participants