RESOLVED FIXED 68997
Web Inspector: update call frame location when source mapping is changed.
https://bugs.webkit.org/show_bug.cgi?id=68997
Summary Web Inspector: update call frame location when source mapping is changed.
Pavel Podivilov
Reported 2011-09-28 05:52:24 PDT
Web Inspector: update call frame location when source mapping is changed. Currently we use fake "debugger-paused" event hack to update execution line and call stack placards when source mapping is changed. - add PresentationCallFrame.createPlacard method to create "live" placards that are updated on source mapping changes. This works like DebuggerPresentationModel.linkifyLocation. - fire execution-line-changed event when selected call frame or source mapping is changed.
Attachments
Patch (16.49 KB, patch)
2011-09-28 05:53 PDT, Pavel Podivilov
no flags
Patch (16.56 KB, patch)
2011-09-29 00:35 PDT, Pavel Podivilov
pfeldman: review+
Pavel Podivilov
Comment 1 2011-09-28 05:53:45 PDT
Pavel Feldman
Comment 2 2011-09-28 22:42:13 PDT
Comment on attachment 109009 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=109009&action=review > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:378 > + this._executionRawSourceCode.removeEventListener(WebInspector.RawSourceCode.Events.SourceMappingUpdated, this._dispatchExecutionLineChanged, this); I don't think the concept of the executionRawSourceCode should exist. Execution line for us is the line of the call frame, the one from the UI. > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:-445 > - get isInternalScript() You should mention this change in the ChangeLog > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:509 > + this._rawSourceCode.addEventListener(WebInspector.RawSourceCode.Events.SourceMappingUpdated, updatePlacard, this); Why aren't we using linkifyLocation here?
Pavel Podivilov
Comment 3 2011-09-29 00:34:11 PDT
(In reply to comment #2) > (From update of attachment 109009 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=109009&action=review > > > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:378 > > + this._executionRawSourceCode.removeEventListener(WebInspector.RawSourceCode.Events.SourceMappingUpdated, this._dispatchExecutionLineChanged, this); > > I don't think the concept of the executionRawSourceCode should exist. Execution line for us is the line of the call frame, the one from the UI. Done. > > > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:-445 > > - get isInternalScript() > > You should mention this change in the ChangeLog Done. > > > Source/WebCore/inspector/front-end/DebuggerPresentationModel.js:509 > > + this._rawSourceCode.addEventListener(WebInspector.RawSourceCode.Events.SourceMappingUpdated, updatePlacard, this); > > Why aren't we using linkifyLocation here? linkifyLocation creates anchors, not placards. How can we use it here?
Pavel Podivilov
Comment 4 2011-09-29 00:35:05 PDT
Pavel Podivilov
Comment 5 2011-10-04 06:42:59 PDT
Note You need to log in before you can comment on or make changes to this bug.