Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Issue 290633009: DevTools: Show detailed information for exceptions during snippet execution. (Closed)

Created:
6 years, 7 months ago by kozyatinskiy1
Modified:
6 years, 5 months ago
Reviewers:
vsevik, aandrey, pfeldman, yurys
CC:
blink-reviews, vsevik+blink_chromium.org, caseq+blink_chromium.org, arv+blink, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, abarth-chromium, loislo+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, blink-reviews-bindings_chromium.org, devtools-reviews_chromium.org, apavlov+blink_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add Debugger.ExceptionDetails to protocol. Use ExceptionDetails for pass error when exception in snippet (run or compile). Console show the position of exception when exception happens in snippet. BUG=346013 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175794

Patch Set 1 : #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Total comments: 5

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+158 lines, -66 lines) Patch
M LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html View 1 2 3 4 5 6 7 4 chunks +35 lines, -14 lines 0 comments Download
M LayoutTests/inspector/sources/debugger/debugger-compile-and-run-expected.txt View 1 2 3 1 chunk +11 lines, -2 lines 0 comments Download
M Source/bindings/v8/PageScriptDebugServer.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M Source/bindings/v8/PageScriptDebugServer.cpp View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
M Source/bindings/v8/ScriptDebugServer.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M Source/bindings/v8/ScriptDebugServer.cpp View 1 2 3 4 5 6 7 8 5 chunks +15 lines, -6 lines 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.cpp View 1 2 3 4 5 6 7 8 4 chunks +29 lines, -11 lines 0 comments Download
M Source/devtools/front_end/sdk/ScriptSnippetModel.js View 1 2 3 4 5 6 7 8 3 chunks +43 lines, -21 lines 1 comment Download
M Source/devtools/protocol.json View 1 2 3 4 5 6 7 8 3 chunks +14 lines, -2 lines 0 comments Download

Messages

Total messages: 46 (0 generated)
kozyatinskiy1
6 years, 7 months ago (2014-05-16 17:01:39 UTC) #1
vsevik
https://chromiumcodereview.appspot.com/290633009/diff/10008/Source/bindings/v8/ScriptDebugServer.cpp File Source/bindings/v8/ScriptDebugServer.cpp (right): https://chromiumcodereview.appspot.com/290633009/diff/10008/Source/bindings/v8/ScriptDebugServer.cpp#newcode617 Source/bindings/v8/ScriptDebugServer.cpp:617: if (lineNumber) This won't be needed once default parameters ...
6 years, 7 months ago (2014-05-19 12:40:22 UTC) #2
vsevik
Overall looks good, let's add a test and we can land it.
6 years, 7 months ago (2014-05-21 13:16:24 UTC) #3
vsevik
https://chromiumcodereview.appspot.com/290633009/diff/50001/Source/devtools/protocol.json File Source/devtools/protocol.json (right): https://chromiumcodereview.appspot.com/290633009/diff/50001/Source/devtools/protocol.json#newcode2912 Source/devtools/protocol.json:2912: "id": "ExceptionMessage", Exception details https://chromiumcodereview.appspot.com/290633009/diff/50001/Source/devtools/protocol.json#newcode2914 Source/devtools/protocol.json:2914: "description": "Exception message.", ...
6 years, 7 months ago (2014-05-21 13:16:32 UTC) #4
vsevik
Also please give it a more meaningful name, e.g. DevTools: Show detailed information for exceptions ...
6 years, 7 months ago (2014-05-22 05:40:28 UTC) #5
kozyatinskiy1
On 2014/05/22 05:40:28, vsevik wrote: > Also please give it a more meaningful name, e.g. ...
6 years, 7 months ago (2014-05-22 15:34:12 UTC) #6
vsevik
https://chromiumcodereview.appspot.com/290633009/diff/70001/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html File LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html (right): https://chromiumcodereview.appspot.com/290633009/diff/70001/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html#newcode19 LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html:19: for (var i = 0; i < stack.length && ...
6 years, 7 months ago (2014-05-22 15:40:46 UTC) #7
vsevik
https://chromiumcodereview.appspot.com/290633009/diff/70001/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html File LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html (right): https://chromiumcodereview.appspot.com/290633009/diff/70001/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html#newcode33 LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html:33: var contextId = undefined; On 2014/05/22 15:40:46, vsevik wrote: ...
6 years, 7 months ago (2014-05-22 15:42:01 UTC) #8
vsevik
https://chromiumcodereview.appspot.com/290633009/diff/70001/Source/core/inspector/InspectorDebuggerAgent.cpp File Source/core/inspector/InspectorDebuggerAgent.cpp (right): https://chromiumcodereview.appspot.com/290633009/diff/70001/Source/core/inspector/InspectorDebuggerAgent.cpp#newcode958 Source/core/inspector/InspectorDebuggerAgent.cpp:958: if (!!scriptIdValue) "if (scriptIdValue)" is well enough.
6 years, 7 months ago (2014-05-22 15:56:15 UTC) #9
kozyatinskiy1
On 2014/05/22 15:56:15, vsevik wrote: > https://chromiumcodereview.appspot.com/290633009/diff/70001/Source/core/inspector/InspectorDebuggerAgent.cpp > File Source/core/inspector/InspectorDebuggerAgent.cpp (right): > > https://chromiumcodereview.appspot.com/290633009/diff/70001/Source/core/inspector/InspectorDebuggerAgent.cpp#newcode958 > ...
6 years, 7 months ago (2014-05-22 16:27:24 UTC) #10
vsevik
lgtm
6 years, 7 months ago (2014-05-22 16:42:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kozyatinskiy@google.com/290633009/100001
6 years, 7 months ago (2014-05-22 16:42:49 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-22 16:43:02 UTC) #13
commit-bot: I haz the power
Failed to apply patch for Source/bindings/v8/ScriptDebugServer.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-22 16:43:03 UTC) #14
kozyatinskiy1
On 2014/05/22 16:43:03, I haz the power (commit-bot) wrote: > Failed to apply patch for ...
6 years, 7 months ago (2014-05-23 13:48:40 UTC) #15
vsevik
The CQ bit was checked by vsevik@chromium.org
6 years, 7 months ago (2014-05-25 21:56:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kozyatinskiy@google.com/290633009/120001
6 years, 7 months ago (2014-05-25 21:56:32 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-25 23:14:43 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-25 23:31:11 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/6164)
6 years, 7 months ago (2014-05-25 23:31:12 UTC) #20
vsevik
pfeldmn@, yurys@ Could you please OWNERS lgtm this (bindings/v8)?
6 years, 6 months ago (2014-05-28 17:29:25 UTC) #21
vsevik
pfeldman@, yurys@ Could you please OWNERS lgtm this (bindings/v8)?
6 years, 6 months ago (2014-05-28 17:29:30 UTC) #22
yurys
lgtm https://codereview.chromium.org/290633009/diff/120001/Source/bindings/v8/ScriptDebugServer.cpp File Source/bindings/v8/ScriptDebugServer.cpp (right): https://codereview.chromium.org/290633009/diff/120001/Source/bindings/v8/ScriptDebugServer.cpp#newcode619 Source/bindings/v8/ScriptDebugServer.cpp:619: *stackTrace = createScriptCallStack(message->GetStackTrace(), ScriptCallStack::maxCallStackSizeToCapture, m_isolate); We should pass ...
6 years, 6 months ago (2014-06-05 08:46:42 UTC) #23
kozyatinskiy1
> https://codereview.chromium.org/290633009/diff/120001/Source/bindings/v8/ScriptDebugServer.cpp > File Source/bindings/v8/ScriptDebugServer.cpp (right): > > https://codereview.chromium.org/290633009/diff/120001/Source/bindings/v8/ScriptDebugServer.cpp#newcode619 > Source/bindings/v8/ScriptDebugServer.cpp:619: *stackTrace = > createScriptCallStack(message->GetStackTrace(), ...
6 years, 6 months ago (2014-06-05 09:36:52 UTC) #24
aandrey
FYI https://codereview.chromium.org/290633009/diff/140001/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html File LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html (right): https://codereview.chromium.org/290633009/diff/140001/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html#newcode10 LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html:10: InspectorTest.addResult('exceptionDetails:') nit: use "" instead of '' https://codereview.chromium.org/290633009/diff/140001/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html#newcode16 ...
6 years, 6 months ago (2014-06-05 10:17:30 UTC) #25
aandrey
lgtm https://codereview.chromium.org/290633009/diff/140001/Source/core/inspector/InspectorDebuggerAgent.cpp File Source/core/inspector/InspectorDebuggerAgent.cpp (right): https://codereview.chromium.org/290633009/diff/140001/Source/core/inspector/InspectorDebuggerAgent.cpp#newcode939 Source/core/inspector/InspectorDebuggerAgent.cpp:939: void InspectorDebuggerAgent::compileScript(ErrorString* errorString, const String& expression, const String& ...
6 years, 6 months ago (2014-06-05 10:22:55 UTC) #26
kozyatinskiy1
> https://codereview.chromium.org/290633009/diff/140001/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html > File LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html > (right): > > https://codereview.chromium.org/290633009/diff/140001/LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html#newcode10 > LayoutTests/inspector/sources/debugger/debugger-compile-and-run.html:10: > InspectorTest.addResult('exceptionDetails:') > ...
6 years, 6 months ago (2014-06-05 12:58:27 UTC) #27
vsevik
The CQ bit was checked by vsevik@chromium.org
6 years, 6 months ago (2014-06-05 14:26:22 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kozyatinskiy@google.com/290633009/180001
6 years, 6 months ago (2014-06-05 14:26:41 UTC) #29
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-06-05 15:55:45 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-05 15:57:08 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/10447)
6 years, 6 months ago (2014-06-05 15:57:08 UTC) #32
vsevik
This one needs a rebaseline.
6 years, 6 months ago (2014-06-05 15:57:31 UTC) #33
kozyatinskiy1
On 2014/06/05 15:57:31, vsevik wrote: > This one needs a rebaseline. Done.
6 years, 6 months ago (2014-06-06 15:15:48 UTC) #34
vsevik
The CQ bit was checked by vsevik@chromium.org
6 years, 6 months ago (2014-06-06 16:06:19 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kozyatinskiy@google.com/290633009/190001
6 years, 6 months ago (2014-06-06 16:07:27 UTC) #36
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: blink_presubmit on tryserver.blink ...
6 years, 6 months ago (2014-06-06 16:59:41 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-06 17:01:15 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/8424) mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/10621)
6 years, 6 months ago (2014-06-06 17:01:17 UTC) #39
kozyatinskiy1
The CQ bit was checked by kozyatinskiy@google.com
6 years, 6 months ago (2014-06-09 12:20:57 UTC) #40
kozyatinskiy1
The CQ bit was unchecked by kozyatinskiy@google.com
6 years, 6 months ago (2014-06-09 12:21:00 UTC) #41
vsevik
The CQ bit was checked by vsevik@chromium.org
6 years, 6 months ago (2014-06-09 12:21:22 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kozyatinskiy@google.com/290633009/230001
6 years, 6 months ago (2014-06-09 12:21:52 UTC) #43
commit-bot: I haz the power
Change committed as 175794
6 years, 6 months ago (2014-06-09 13:25:00 UTC) #44
aandrey
FYI https://codereview.chromium.org/290633009/diff/230001/Source/devtools/front_end/sdk/ScriptSnippetModel.js File Source/devtools/front_end/sdk/ScriptSnippetModel.js (right): https://codereview.chromium.org/290633009/diff/230001/Source/devtools/front_end/sdk/ScriptSnippetModel.js#newcode345 Source/devtools/front_end/sdk/ScriptSnippetModel.js:345: exceptionDetails.stackTrace); We also need to pass Console.AsyncStackTrace with ...
6 years, 5 months ago (2014-07-19 13:15:59 UTC) #45
vsevik
6 years, 5 months ago (2014-07-21 06:46:26 UTC) #46
Message was sent while issue was closed.
On 2014/07/19 13:15:59, aandrey wrote:
> FYI
> 
>
https://codereview.chromium.org/290633009/diff/230001/Source/devtools/front_e...
> File Source/devtools/front_end/sdk/ScriptSnippetModel.js (right):
> 
>
https://codereview.chromium.org/290633009/diff/230001/Source/devtools/front_e...
> Source/devtools/front_end/sdk/ScriptSnippetModel.js:345:
> exceptionDetails.stackTrace);
> We also need to pass Console.AsyncStackTrace with the exceptionDetails. I can
do
> this unless you'd like to.

I am not sure there exists a scenario where AsyncStackTrace would make sense for
snippets execution / console evaluation.
We are making a protocol call here that returns synchronously. Could you please
clarify what you mean?

Powered by Google App Engine
This is Rietveld 408576698