RESOLVED FIXED 70718
Web Inspector: Debugger fails when there is an invalid watch expression.
https://bugs.webkit.org/show_bug.cgi?id=70718
Summary Web Inspector: Debugger fails when there is an invalid watch expression.
Vsevolod Vlasov
Reported 2011-10-24 05:15:03 PDT
Debugger fails when there an invalid watch expression. To reproduce: 1) add invalid watch expression, e.g. "windowa.document" 2) set some breakpoint and trigger stop on it. You will not see any call frames and execution line will not be shown.
Attachments
Patch (8.64 KB, patch)
2011-10-24 08:26 PDT, Vsevolod Vlasov
no flags
Patch (7.30 KB, patch)
2011-10-25 07:34 PDT, Vsevolod Vlasov
no flags
Patch (8.36 KB, patch)
2011-10-26 01:56 PDT, Vsevolod Vlasov
pfeldman: review+
Vsevolod Vlasov
Comment 1 2011-10-24 08:26:20 PDT
Pavel Feldman
Comment 2 2011-10-24 10:18:24 PDT
Comment on attachment 112189 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=112189&action=review > Source/WebCore/inspector/front-end/ConsoleView.js:576 > + if (WebInspector.panels.scripts.paused && WebInspector.panels.scripts.isCallFrameSelected()) { I'd suggest that we maintain the following invariant: whenever paused === true, there is a call frame selected. > Source/WebCore/inspector/front-end/ScriptsPanel.js:478 > + if (selectedCallFrame) Let's fail in case there is not selected callframe.
Vsevolod Vlasov
Comment 3 2011-10-25 07:34:57 PDT
Vsevolod Vlasov
Comment 4 2011-10-25 07:35:58 PDT
As discussed offline, this patch fixes the problem itself and overall watch expressions logic will be fixed in the separate patch.
WebKit Review Bot
Comment 5 2011-10-25 08:05:09 PDT
Comment on attachment 112333 [details] Patch Clearing flags on attachment: 112333 Committed r98346: <http://trac.webkit.org/changeset/98346>
WebKit Review Bot
Comment 6 2011-10-25 08:05:13 PDT
All reviewed patches have been landed. Closing bug.
Ryosuke Niwa
Comment 8 2011-10-25 10:36:32 PDT
Vsevolod Vlasov
Comment 9 2011-10-25 11:07:45 PDT
Vsevolod Vlasov
Comment 10 2011-10-26 01:15:48 PDT
Reopening since it was rolled out.
Vsevolod Vlasov
Comment 11 2011-10-26 01:56:15 PDT
Pavel Feldman
Comment 12 2011-10-26 01:58:00 PDT
Comment on attachment 112470 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=112470&action=review > LayoutTests/inspector/debugger/watch-expressions-panel-switch.html:16 > + InspectorTest.startDebuggerTest(step1); Yep.
Vsevolod Vlasov
Comment 13 2011-10-26 02:07:08 PDT
Note You need to log in before you can comment on or make changes to this bug.