WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 55823
55822
Web Inspector: move breakpoints filtering to debugger model
https://bugs.webkit.org/show_bug.cgi?id=55822
Summary
Web Inspector: move breakpoints filtering to debugger model
Pavel Podivilov
Reported
2011-03-05 05:20:48 PST
Web Inspector: move breakpoints filtering to debugger model. Breakpoints are currently restored by debugger model, so it's the best place to filter out breakpoints that don't have corresponding scripts.
Attachments
Patch.
(5.61 KB, patch)
2011-03-05 05:21 PST
,
Pavel Podivilov
pfeldman
: review-
Details
Formatted Diff
Diff
Patch.
(7.54 KB, patch)
2011-03-09 04:04 PST
,
Pavel Podivilov
pfeldman
: review-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Pavel Podivilov
Comment 1
2011-03-05 05:21:53 PST
Created
attachment 84860
[details]
Patch.
Pavel Feldman
Comment 2
2011-03-06 10:59:09 PST
Comment on
attachment 84860
[details]
Patch. View in context:
https://bugs.webkit.org/attachment.cgi?id=84860&action=review
> Source/WebCore/inspector/front-end/DebuggerModel.js:333 > + this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.BreakpointAdded, breakpoint);
What happens if breakpoint is not resolved or is resolved on a different line? Should it get BreakpointAdded event? Do we have an "unresolved" breakpoint state?
Pavel Podivilov
Comment 3
2011-03-09 04:04:40 PST
Created
attachment 85157
[details]
Patch.
Pavel Podivilov
Comment 4
2011-03-09 04:11:27 PST
(In reply to
comment #2
)
> (From update of
attachment 84860
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=84860&action=review
> > > Source/WebCore/inspector/front-end/DebuggerModel.js:333 > > + this.dispatchEventToListeners(WebInspector.DebuggerModel.Events.BreakpointAdded, breakpoint); > > What happens if breakpoint is not resolved or is resolved on a different line? Should it get BreakpointAdded event? Do we have an "unresolved" breakpoint state?
Debugger model breakpoint has "locations" property, breakpoint is considered "unresolved" when breakpoint.locations array is empty. Right after the navigation all breakpoints are hidden. BreakpointAdded event is dispatched in "parsed-script-source" event handler for breakpoints with matching url. BreakpointResolved is dispatched for already revealed breakpoints when new location is added to breakpoint.locations array.
Pavel Feldman
Comment 5
2011-03-09 04:38:10 PST
> Right after the navigation all breakpoints are hidden. BreakpointAdded event is dispatched in "parsed-script-source" event handler for breakpoints with matching url. BreakpointResolved is dispatched for already revealed breakpoints when new location is added to breakpoint.locations array.
Why do we distinguish between "added" breakpoints and "resolved" breakpoints? Why do add and hide all the breakpoints upon navigation?
Pavel Podivilov
Comment 6
2011-03-09 04:49:20 PST
(In reply to
comment #5
)
> > Right after the navigation all breakpoints are hidden. BreakpointAdded event is dispatched in "parsed-script-source" event handler for breakpoints with matching url. BreakpointResolved is dispatched for already revealed breakpoints when new location is added to breakpoint.locations array. > > Why do we distinguish between "added" breakpoints and "resolved" breakpoints? Why do add and hide all the breakpoints upon navigation?
BreakpointAdded event is dispatched for all breakpoints with url that matches any script compiled in current debugging session (including unresolved breakpoints). BreakpointResolved may be dispatched after BreakpointAdded when breakpoint is actually set by VM. We hide and add breakpoints upon navigation to avoid UI cluttering.
Pavel Feldman
Comment 7
2011-03-09 04:50:59 PST
> BreakpointAdded event is dispatched for all breakpoints with url that matches any script compiled in current debugging session (including unresolved breakpoints). > BreakpointResolved may be dispatched after BreakpointAdded when breakpoint is actually set by VM. > We hide and add breakpoints upon navigation to avoid UI cluttering.
Do we show unresolved breakpoints though?
Pavel Podivilov
Comment 8
2011-03-09 04:53:46 PST
(In reply to
comment #7
)
> > BreakpointAdded event is dispatched for all breakpoints with url that matches any script compiled in current debugging session (including unresolved breakpoints). > > BreakpointResolved may be dispatched after BreakpointAdded when breakpoint is actually set by VM. > > We hide and add breakpoints upon navigation to avoid UI cluttering. > > Do we show unresolved breakpoints though?
Yes. Breakpoint is shown by BreakpointAdded handler in UI. Later it may be moved on BreakpointResolved event.
Pavel Feldman
Comment 9
2011-03-09 05:15:26 PST
Comment on
attachment 85157
[details]
Patch. It is not clear why we need this "_hidden" state. Is there a notion of "hidden" breakpoint on the JSC / V8 level? DebuggerModel is just their mirror.
Pavel Podivilov
Comment 10
2011-03-09 06:27:14 PST
Hidden should be a property of presentation breakpoints. *** This bug has been marked as a duplicate of
bug 55823
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug