New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 652461 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocked on:
issue 572068



Sign in to add a comment

DevTools: update style in debugger sidepane

Project Member Reported by l...@chromium.org, Oct 3 2016

Issue description

The debugging side pane in DevTools is the main control for debugging workflows.

We can improve the UI by:
- moving the paused reason/exception to a more visible place, e.g. the top of the callstack
- stop using multiple gray colors
- no underline on links
- better style the async dividers (async, setTimeout, raf, promises)
- fix flickering of the pane when stepping

 

Comment 1 by l...@chromium.org, Oct 4 2016

newCallStackStyle.png
40.8 KB View Download
May we have a screenshot with deeper stack traces?

Comment 3 by l...@chromium.org, Oct 5 2016

stackStyle2.png
272 KB View Download
stackStyle3.png
264 KB View Download
stackStyle4.png
90.7 KB View Download

Comment 4 by l...@chromium.org, Oct 5 2016

And some 'before' shots for comparison with what we have today.

Now that I see stackStyle3.png next to what we have today, it's a bit harder to separate lines when they wrap.  This would be nice with middle-truncating links.
stackStyleBefore1.png
80.4 KB View Download
stackStyleBefore2.png
93.1 KB View Download
I think we can do better with the line wrapping. Right now, if a stack frame doesn't fit on a single line, it actually looks like 2 separate frames.

My recommendation: if a frame and its source don't fit on a single line, split it across 2 lines, with the frame on the first line and the source on the second.

For example, instead of this:

+----------------------------------------------------------+
| ReallyLongObjectName.withRea  really-long-script-name.js |
| llyLongMethodName                                        |
+----------------------------------------------------------+

Try this:

+----------------------------------------------------------+
| ReallyLongObjectName.withReallyLongMethodName            |
|                               really-long-script-name.js |
+----------------------------------------------------------+

This will keep the call stack scannable when looking down the left edge. But make sure the source always has some space to the left, so it's doesn't become flush with the function name.


Comment 6 by l...@chromium.org, Oct 7 2016

This screenshot uses the wrapping onto 2 lines suggested by chowse@
betterCallstack1.png
134 KB View Download
betterCallstack2.png
71.2 KB View Download
Project Member

Comment 7 by bugdroid1@chromium.org, Oct 13 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2ae84df4a969c7b0f17f66a25e29fb59cc484a4d

commit 2ae84df4a969c7b0f17f66a25e29fb59cc484a4d
Author: luoe <luoe@chromium.org>
Date: Thu Oct 13 01:29:24 2016

DevTools: update styles for debugger's CallStackSidebarPane

- async links now format the same as non-async links
- updated gray color
- async dividers aligned to the left
- line separators only appear for async dividers

BUG= 652461 

Review-Url: https://codereview.chromium.org/2389333002
Cr-Commit-Position: refs/heads/master@{#424929}

[modify] https://crrev.com/2ae84df4a969c7b0f17f66a25e29fb59cc484a4d/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url-expected.txt
[modify] https://crrev.com/2ae84df4a969c7b0f17f66a25e29fb59cc484a4d/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/async-call-stack-url.html
[add] https://crrev.com/2ae84df4a969c7b0f17f66a25e29fb59cc484a4d/third_party/WebKit/LayoutTests/inspector/sources/debugger/resources/unformatted-async.js
[modify] https://crrev.com/2ae84df4a969c7b0f17f66a25e29fb59cc484a4d/third_party/WebKit/Source/devtools/front_end/sources/CallStackSidebarPane.js
[modify] https://crrev.com/2ae84df4a969c7b0f17f66a25e29fb59cc484a4d/third_party/WebKit/Source/devtools/front_end/sources/UIList.js
[modify] https://crrev.com/2ae84df4a969c7b0f17f66a25e29fb59cc484a4d/third_party/WebKit/Source/devtools/front_end/sources/uiList.css
[modify] https://crrev.com/2ae84df4a969c7b0f17f66a25e29fb59cc484a4d/third_party/WebKit/Source/devtools/front_end/ui/viewContainers.css

Comment 8 by l...@chromium.org, Nov 3 2016

Summary: DevTools: avoid flickering when stepping in debugger (was: DevTools: revamp/cleanup styles in debugger side pane)
Since the last bug is to fix flickering, I will update the title to be more searchable.

Comment 9 by l...@chromium.org, Nov 12 2016

Summary: DevTools: update style in debugger sidepane (was: DevTools: avoid flickering when stepping in debugger)
Remaining items:
- avoid flickering when stepping in debugger
- introduce a dynamic truncation component so that links in the sidepane will truncate in the middle but always have a visible part to the right of the ellipsis

Comment 10 by l...@chromium.org, Mar 28 2017

Status: Fixed (was: Assigned)
Marking this as fixed since the original style update already landed.  The 2nd remaining item was also captured by another filed bug:  http://crbug.com/692376 

Sign in to add a comment