Bug 122900 - Web Inspector: clearer indication that the debugger is paused
Summary: Web Inspector: clearer indication that the debugger is paused
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-10-16 09:03 PDT by Dave Coffin
Modified: 2014-12-04 15:29 PST (History)
4 users (show)

See Also:


Attachments
example of a paused script indication (637.87 KB, image/png)
2013-10-16 09:03 PDT, Dave Coffin
no flags Details
Another option for script paused indication (715.27 KB, image/png)
2013-10-16 11:44 PDT, Dave Coffin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Coffin 2013-10-16 09:03:35 PDT
Created attachment 214366 [details]
example of a paused script indication

Theres no outstanding indication in the browser window that you are currently paused in a script. So, if you are waiting on an ajax request, (and doing 5 other things), its not immediately obvious that you've returned and are paused. The old web inspector would darken the screen (I'm not a huge fan of that because I like to be able to inspect the DOM while paused), but something like the attached would be useful.
Comment 1 Radar WebKit Bug Importer 2013-10-16 09:04:08 PDT
<rdar://problem/15241459>
Comment 2 Timothy Hatcher 2013-10-16 11:28:42 PDT
One concern I have with changing/overlaying the page is it would impede the ability to visually debug the page. If you are stepping through canvas drawing code, you likely want to look at it on screen.

The mock-up attach isn't that bad, the border does not cover too much. But it might be easy to miss too… not an easy problem to solve with out being in the way.

One idea we have discussed in the past is pulsing the Debugger icon red or some color when paused.
Comment 3 Timothy Hatcher 2013-10-16 11:30:52 PDT
Putting the indication in the Inspector UI (like pulsing the debugger icon) will help remote debugging too, since you are juggling two screens.
Comment 4 Dave Coffin 2013-10-16 11:44:25 PDT
Created attachment 214380 [details]
Another option for script paused indication
Comment 5 Dave Coffin 2013-10-16 11:44:42 PDT
Heres another idea…use the status window. Seems the most appropriate. Attached is not my finest mockup, but something like this. A bright color would get the users attention, but have arrows to toggle back to your stats. If you adopt that method (like in iTunes), you could use that status window for more things in the future like file upload progress and stuff.
Comment 6 Timothy Hatcher 2013-10-16 11:46:24 PDT
That is a good idea. We should explore that some.
Comment 7 Dave Coffin 2013-10-17 08:45:15 PDT
To add to my argument:

Say you've got a break point in your code that you set yesterday while debugging something. You wake up the next morning, start working on a different bug, forgetting that you set a break point yesterday. Your script pauses, but theres no clear indication that you're paused, so you think your whole program has stopped working. You get mad, spill your coffee on your computer and quit your job. That happened to me this morning. Well, not the last part. But I was very confused for a good minute.
Comment 8 Brian Burg 2014-12-04 15:29:10 PST
The latter mockup has been implemented for some time now. Please file bugs against it if you have ideas for improvements!