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

Issue 369333002: DevTools: Added error message when the command is invoked from the console with exception (Closed)

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

Description

Added error message with stack trace and exception details if exception happened when command in console evaluate. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178471

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Total comments: 13

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Patch Set 8 : #

Total comments: 4

Patch Set 9 : #

Total comments: 3

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -70 lines) Patch
A LayoutTests/inspector/console/console-eval-exception-report.html View 1 2 3 4 5 6 1 chunk +47 lines, -0 lines 0 comments Download
A LayoutTests/inspector/console/console-eval-exception-report-expected.txt View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
M LayoutTests/inspector/console/console-eval-syntax-error-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A LayoutTests/inspector/console/console-eval-throw.html View 1 2 3 4 5 6 7 8 9 1 chunk +56 lines, -0 lines 0 comments Download
A LayoutTests/inspector/console/console-eval-throw-expected.txt View 1 2 3 4 5 6 7 8 1 chunk +23 lines, -0 lines 0 comments Download
D LayoutTests/inspector/console/console-eval-throw-undefined.html View 1 2 3 4 5 1 chunk +0 lines, -25 lines 0 comments Download
M LayoutTests/inspector/console/console-eval-throw-undefined-expected.txt View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M LayoutTests/inspector/console/console-eval-undefined-override-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InjectedScript.h View 2 chunks +4 lines, -2 lines 0 comments Download
M Source/core/inspector/InjectedScript.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/inspector/InjectedScriptBase.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/InjectedScriptBase.cpp View 1 2 3 4 3 chunks +53 lines, -1 line 0 comments Download
M Source/core/inspector/InjectedScriptSource.js View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -4 lines 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorDebuggerAgent.cpp View 1 2 3 4 5 6 7 2 chunks +6 lines, -3 lines 0 comments Download
M Source/core/inspector/InspectorRuntimeAgent.h View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/inspector/InspectorRuntimeAgent.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/devtools/front_end/console/ConsoleView.js View 1 2 3 4 5 6 7 3 chunks +8 lines, -3 lines 0 comments Download
M Source/devtools/front_end/console/ConsoleViewMessage.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M Source/devtools/front_end/sdk/ConsoleModel.js View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M Source/devtools/front_end/sdk/DebuggerModel.js View 1 2 3 chunks +9 lines, -7 lines 0 comments Download
M Source/devtools/front_end/sdk/RuntimeModel.js View 1 3 chunks +5 lines, -4 lines 0 comments Download
M Source/devtools/protocol.json View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
kozyatinskiy1
6 years, 5 months ago (2014-07-04 16:45:16 UTC) #1
aandrey
https://codereview.chromium.org/369333002/diff/1/Source/core/inspector/InjectedScriptBase.cpp File Source/core/inspector/InjectedScriptBase.cpp (right): https://codereview.chromium.org/369333002/diff/1/Source/core/inspector/InjectedScriptBase.cpp#newcode150 Source/core/inspector/InjectedScriptBase.cpp:150: RefPtr<JSONObject> exceptionDetails = resultPair->getObject("exceptionDetails"); so, where is it coming ...
6 years, 5 months ago (2014-07-04 16:57:25 UTC) #2
kozyatinskiy1
On 2014/07/04 16:57:25, aandrey wrote: > https://codereview.chromium.org/369333002/diff/1/Source/core/inspector/InjectedScriptBase.cpp > File Source/core/inspector/InjectedScriptBase.cpp (right): > > https://codereview.chromium.org/369333002/diff/1/Source/core/inspector/InjectedScriptBase.cpp#newcode150 > ...
6 years, 5 months ago (2014-07-04 17:01:56 UTC) #3
vsevik
We need a test for this.
6 years, 5 months ago (2014-07-14 15:50:28 UTC) #4
vsevik
We need a test for this.
6 years, 5 months ago (2014-07-14 15:50:28 UTC) #5
kozyatinskiy1
On 2014/07/14 15:50:28, vsevik wrote: > We need a test for this. Changed existing tests.
6 years, 5 months ago (2014-07-15 15:47:22 UTC) #6
vsevik
https://chromiumcodereview.appspot.com/369333002/diff/60001/LayoutTests/inspector/console/console-eval-syntax-error-expected.txt File LayoutTests/inspector/console/console-eval-syntax-error-expected.txt (right): https://chromiumcodereview.appspot.com/369333002/diff/60001/LayoutTests/inspector/console/console-eval-syntax-error-expected.txt#newcode4 LayoutTests/inspector/console/console-eval-syntax-error-expected.txt:4: Uncaught SyntaxError: Unexpected token } VM:731 Let's add a ...
6 years, 5 months ago (2014-07-15 16:14:33 UTC) #7
kozyatinskiy1
https://codereview.chromium.org/369333002/diff/60001/LayoutTests/inspector/console/console-eval-syntax-error-expected.txt File LayoutTests/inspector/console/console-eval-syntax-error-expected.txt (right): https://codereview.chromium.org/369333002/diff/60001/LayoutTests/inspector/console/console-eval-syntax-error-expected.txt#newcode4 LayoutTests/inspector/console/console-eval-syntax-error-expected.txt:4: Uncaught SyntaxError: Unexpected token } VM:731 On 2014/07/15 16:14:33, ...
6 years, 5 months ago (2014-07-16 13:15:47 UTC) #8
aandrey
https://chromiumcodereview.appspot.com/369333002/diff/100001/LayoutTests/inspector/console/console-eval-exception-report.html File LayoutTests/inspector/console/console-eval-exception-report.html (right): https://chromiumcodereview.appspot.com/369333002/diff/100001/LayoutTests/inspector/console/console-eval-exception-report.html#newcode21 LayoutTests/inspector/console/console-eval-exception-report.html:21: InspectorTest.dumpConsoleMessages(); you could expand console messages first, and then ...
6 years, 5 months ago (2014-07-17 10:10:06 UTC) #9
kozyatinskiy1
https://codereview.chromium.org/369333002/diff/100001/LayoutTests/inspector/console/console-eval-exception-report.html File LayoutTests/inspector/console/console-eval-exception-report.html (right): https://codereview.chromium.org/369333002/diff/100001/LayoutTests/inspector/console/console-eval-exception-report.html#newcode21 LayoutTests/inspector/console/console-eval-exception-report.html:21: InspectorTest.dumpConsoleMessages(); On 2014/07/17 10:10:05, aandrey wrote: > you could ...
6 years, 5 months ago (2014-07-17 12:27:23 UTC) #10
aandrey
https://codereview.chromium.org/369333002/diff/100001/LayoutTests/inspector/console/console-eval-exception-report.html File LayoutTests/inspector/console/console-eval-exception-report.html (right): https://codereview.chromium.org/369333002/diff/100001/LayoutTests/inspector/console/console-eval-exception-report.html#newcode21 LayoutTests/inspector/console/console-eval-exception-report.html:21: InspectorTest.dumpConsoleMessages(); On 2014/07/17 12:27:23, kozyatinskiy wrote: > On 2014/07/17 ...
6 years, 5 months ago (2014-07-17 12:31:58 UTC) #11
aandrey
On 2014/07/17 12:31:58, aandrey wrote: > https://codereview.chromium.org/369333002/diff/100001/LayoutTests/inspector/console/console-eval-exception-report.html > File LayoutTests/inspector/console/console-eval-exception-report.html (right): > > https://codereview.chromium.org/369333002/diff/100001/LayoutTests/inspector/console/console-eval-exception-report.html#newcode21 > ...
6 years, 5 months ago (2014-07-17 12:33:42 UTC) #12
kozyatinskiy1
On 2014/07/17 12:31:58, aandrey wrote: > https://codereview.chromium.org/369333002/diff/100001/LayoutTests/inspector/console/console-eval-exception-report.html > File LayoutTests/inspector/console/console-eval-exception-report.html (right): > > https://codereview.chromium.org/369333002/diff/100001/LayoutTests/inspector/console/console-eval-exception-report.html#newcode21 > ...
6 years, 5 months ago (2014-07-17 12:45:34 UTC) #13
vsevik
Looks good to me, please fix tests and make sure pfeldman@ is fine with the ...
6 years, 5 months ago (2014-07-17 13:13:22 UTC) #14
kozyatinskiy1
https://codereview.chromium.org/369333002/diff/140001/LayoutTests/inspector/console/console-eval-exception-report.html File LayoutTests/inspector/console/console-eval-exception-report.html (right): https://codereview.chromium.org/369333002/diff/140001/LayoutTests/inspector/console/console-eval-exception-report.html#newcode28 LayoutTests/inspector/console/console-eval-exception-report.html:28: InspectorTest.assertGreaterOrEqual(stackTrace.length, 3, 'Not complete stack trace'); On 2014/07/17 13:13:22, ...
6 years, 5 months ago (2014-07-17 14:02:51 UTC) #15
vsevik
https://codereview.chromium.org/369333002/diff/160001/LayoutTests/inspector/console/console-eval-exception-report.html File LayoutTests/inspector/console/console-eval-exception-report.html (right): https://codereview.chromium.org/369333002/diff/160001/LayoutTests/inspector/console/console-eval-exception-report.html#newcode29 LayoutTests/inspector/console/console-eval-exception-report.html:29: InspectorTest.addResult('FAILED: bad stack size'); Stack size too small https://codereview.chromium.org/369333002/diff/160001/LayoutTests/inspector/console/console-eval-exception-report.html#newcode40 ...
6 years, 5 months ago (2014-07-17 14:34:02 UTC) #16
kozyatinskiy1
https://codereview.chromium.org/369333002/diff/160001/LayoutTests/inspector/console/console-eval-exception-report.html File LayoutTests/inspector/console/console-eval-exception-report.html (right): https://codereview.chromium.org/369333002/diff/160001/LayoutTests/inspector/console/console-eval-exception-report.html#newcode29 LayoutTests/inspector/console/console-eval-exception-report.html:29: InspectorTest.addResult('FAILED: bad stack size'); On 2014/07/17 14:34:02, vsevik wrote: ...
6 years, 5 months ago (2014-07-17 14:58:44 UTC) #17
kozyatinskiy1
On 2014/07/17 14:58:44, kozyatinskiy wrote: > https://codereview.chromium.org/369333002/diff/160001/LayoutTests/inspector/console/console-eval-exception-report.html > File LayoutTests/inspector/console/console-eval-exception-report.html (right): > > https://codereview.chromium.org/369333002/diff/160001/LayoutTests/inspector/console/console-eval-exception-report.html#newcode29 > ...
6 years, 5 months ago (2014-07-18 08:35:10 UTC) #18
vsevik
https://chromiumcodereview.appspot.com/369333002/diff/200001/LayoutTests/inspector/console/console-eval-throw-expected.txt File LayoutTests/inspector/console/console-eval-throw-expected.txt (right): https://chromiumcodereview.appspot.com/369333002/diff/200001/LayoutTests/inspector/console/console-eval-throw-expected.txt#newcode4 LayoutTests/inspector/console/console-eval-throw-expected.txt:4: Running: testThrowUndefined We should clear messages between tests in ...
6 years, 5 months ago (2014-07-18 14:41:06 UTC) #19
kozyatinskiy1
https://codereview.chromium.org/369333002/diff/200001/LayoutTests/inspector/console/console-eval-throw-expected.txt File LayoutTests/inspector/console/console-eval-throw-expected.txt (right): https://codereview.chromium.org/369333002/diff/200001/LayoutTests/inspector/console/console-eval-throw-expected.txt#newcode4 LayoutTests/inspector/console/console-eval-throw-expected.txt:4: Running: testThrowUndefined On 2014/07/18 14:41:06, vsevik wrote: > We ...
6 years, 5 months ago (2014-07-18 16:10:09 UTC) #20
vsevik
lgtm https://chromiumcodereview.appspot.com/369333002/diff/240001/LayoutTests/inspector/console/console-eval-throw.html File LayoutTests/inspector/console/console-eval-throw.html (right): https://chromiumcodereview.appspot.com/369333002/diff/240001/LayoutTests/inspector/console/console-eval-throw.html#newcode12 LayoutTests/inspector/console/console-eval-throw.html:12: InspectorTest.runAfterPendingDispatches(next); Let's listen for WebInspector.ConsoleModel.Events.ConsoleCleared instead. https://chromiumcodereview.appspot.com/369333002/diff/240001/Source/core/inspector/InspectorDebuggerAgent.cpp File ...
6 years, 5 months ago (2014-07-18 16:26:19 UTC) #21
kozyatinskiy1
https://codereview.chromium.org/369333002/diff/240001/LayoutTests/inspector/console/console-eval-throw.html File LayoutTests/inspector/console/console-eval-throw.html (right): https://codereview.chromium.org/369333002/diff/240001/LayoutTests/inspector/console/console-eval-throw.html#newcode12 LayoutTests/inspector/console/console-eval-throw.html:12: InspectorTest.runAfterPendingDispatches(next); On 2014/07/18 16:26:19, vsevik wrote: > Let's listen ...
6 years, 5 months ago (2014-07-18 16:43:17 UTC) #22
vsevik
The CQ bit was checked by vsevik@chromium.org
6 years, 5 months ago (2014-07-18 17:06:56 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kozyatinskiy@google.com/369333002/260001
6 years, 5 months ago (2014-07-18 17:07:31 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-18 17:07:49 UTC) #25
commit-bot: I haz the power
Failed to apply patch for Source/core/inspector/InjectedScriptSource.js: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 5 months ago (2014-07-18 17:07:50 UTC) #26
kozyatinskiy1
The CQ bit was checked by kozyatinskiy@google.com
6 years, 5 months ago (2014-07-18 17:31:24 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kozyatinskiy@google.com/369333002/260001
6 years, 5 months ago (2014-07-18 17:31:48 UTC) #28
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 18:46:02 UTC) #29
Message was sent while issue was closed.
Change committed as 178471

Powered by Google App Engine
This is Rietveld 408576698