RESOLVED FIXED Bug 163197
Web Inspector: Revealed line not highlighted in TextEditor while debugger paused
https://bugs.webkit.org/show_bug.cgi?id=163197
Summary Web Inspector: Revealed line not highlighted in TextEditor while debugger paused
Matt Baker
Reported 2016-10-10 00:03:14 PDT
Created attachment 291067 [details] [Video] the bug Summary: Revealed line not highlighted in TextEditor while debugger paused. The behavior was changed in https://bugs.webkit.org/show_bug.cgi?id=161658, to eliminate spamming highlight changes when the active call frame changes while debugging. Instead of always preventing the revealed line from being highlighted whenever the debugger is paused, we should only do so if: 1. Paused in the debugger AND the line being revealed is equal to the executing line. 2. Paused in the debugger AND the executing line is falsey (this means the debugger is paused, and the execution location is being revealed but hasn't been set) Steps to Reproduce: 1. Inspect: <script> (function () { function bar() { debugger; } function foo() { bar(); } foo(); })(); </script> 2. Reload the page 3. When execution pauses, set a breakpoint somewhere other than the execution location 4. Click the breakpoint in the debugger sidebar => The line with the breakpoint isn't highlighted in the editor
Attachments
[Video] the bug (431.44 KB, video/mp4)
2016-10-10 00:03 PDT, Matt Baker
no flags
Patch (1.95 KB, patch)
2016-10-10 00:04 PDT, Matt Baker
no flags
Radar WebKit Bug Importer
Comment 1 2016-10-10 00:03:57 PDT
Matt Baker
Comment 2 2016-10-10 00:04:59 PDT
Timothy Hatcher
Comment 3 2016-10-10 10:01:33 PDT
Comment on attachment 291068 [details] Patch Good call!
WebKit Commit Bot
Comment 4 2016-10-10 10:25:41 PDT
Comment on attachment 291068 [details] Patch Clearing flags on attachment: 291068 Committed r207006: <http://trac.webkit.org/changeset/207006>
WebKit Commit Bot
Comment 5 2016-10-10 10:25:44 PDT
All reviewed patches have been landed. Closing bug.
Joseph Pecoraro
Comment 6 2016-10-11 13:39:27 PDT
This makes stepping behavior look poor. While stepping the line highlights + fades blue despite it having the active line highlight already. This is likely because of the order of operations.
Joseph Pecoraro
Comment 7 2016-10-11 13:50:24 PDT
(In reply to comment #6) > This makes stepping behavior look poor. Addressing in bug 163294.
Note You need to log in before you can comment on or make changes to this bug.