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

Issue 2270033003: DevTools: include traces when exporting console log via 'Save as' (Closed)

Created:
4 years, 4 months ago by luoe
Modified:
4 years, 3 months ago
Reviewers:
dgozman, lushnikov
CC:
chromium-reviews, caseq+blink_chromium.org, tfarina, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

DevTools: include traces when exporting console log via 'Save as' This CL modifies the export behavior when clicking 'Save as...' from the context menu in the console. Exported logs now include the entire formatted message, including the anchor location (source file : line number) and contents of stack traces. Screenshot: http://imgur.com/a/DVKkW BUG=505190, 505177 Committed: https://crrev.com/78ecc7501f1856b791cf5ff65811da03871f72f1 Cr-Commit-Position: refs/heads/master@{#419218}

Patch Set 1 #

Total comments: 4

Patch Set 2 : more tests #

Patch Set 3 : Remove searchable element #

Patch Set 4 : a #

Total comments: 2

Patch Set 5 : Use contentElement instead of formattedMessage #

Total comments: 2

Patch Set 6 : Remove formattedMessage, subsection elements #

Patch Set 7 : Revert changes, no renames #

Patch Set 8 : merge with master #

Patch Set 9 : add repeat count #

Patch Set 10 : public meth #

Patch Set 11 : take out post-lgtm repeat logic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -88 lines) Patch
M third_party/WebKit/LayoutTests/http/tests/inspector/console-cross-origin-iframe-logging-expected.txt View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/console-resource-errors-expected.txt View 1 2 3 4 5 6 7 1 chunk +8 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/console-xhr-logging-async-expected.txt View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/console-xhr-logging-expected.txt View 1 2 3 4 5 6 7 1 chunk +63 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/script-as-text-loading-long-url-expected.txt View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/network/script-as-text-loading-with-caret-expected.txt View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/async-callstack-network-initiator-expected.txt View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console-document-write-from-external-script-logging-expected.txt View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/alert-toString-exception-expected.txt View 1 2 3 4 5 6 7 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-assert-expected.txt View 1 chunk +6 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-error-on-call-frame-expected.txt View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-eval-exception-report-expected.txt View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-filter-level-test-expected.txt View 2 chunks +22 lines, -11 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-link-to-snippet-expected.txt View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-log-before-inspector-open-expected.txt View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-log-eval-syntax-error-expected.txt View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-log-without-console-expected.txt View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-message-from-inline-with-url-expected.txt View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-stack-overflow-expected.txt View 1 2 3 4 5 6 7 1 chunk +13 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-tests-expected.txt View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-trace-arguments-expected.txt View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-trace-expected.txt View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-trace-in-eval-expected.txt View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception-expected.txt View 1 2 3 4 5 6 7 1 chunk +10 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-uncaught-exception-in-eval-expected.txt View 1 2 3 4 5 6 7 1 chunk +10 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-worker-nested-imports-syntax-error-expected.txt View 1 2 3 4 5 6 7 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/console-xpath-expected.txt View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/exception-objects-expected.txt View 1 2 3 4 5 6 7 1 chunk +25 lines, -10 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/console/worker-eval-contains-stack-expected.txt View 1 2 3 4 5 6 7 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-async/async-callstack-in-console-expected.txt View 1 2 3 4 5 6 7 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-eval-on-call-frame-inside-iframe-expected.txt View 1 2 3 4 5 6 7 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger-pause/debugger-eval-while-paused-throws-expected.txt View 1 2 3 4 5 6 7 1 chunk +13 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/sources/debugger/rethrow-error-from-bindings-crash-expected.txt View 1 2 3 4 5 6 7 1 chunk +17 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-causes.html View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/timeline-misc/timeline-event-causes-expected.txt View 1 chunk +10 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js View 1 2 3 4 5 6 7 9 10 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 39 (19 generated)
luoe
Note: - this properly formats async stack traces - doesn't automatically expand objects (or anything ...
4 years, 4 months ago (2016-08-24 00:46:47 UTC) #3
dgozman
https://codereview.chromium.org/2270033003/diff/1/third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js File third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js (right): https://codereview.chromium.org/2270033003/diff/1/third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js#newcode238 third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js:238: row.createChild("td").textContent = "\n"; Does this change things visually? Screenshot?
4 years, 3 months ago (2016-08-24 18:57:09 UTC) #5
dgozman
https://codereview.chromium.org/2270033003/diff/1/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js File third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js (left): https://codereview.chromium.org/2270033003/diff/1/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js#oldcode660 third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js:660: lines.push(message.searchableElement().deepTextContent()); Do we need searchableElement anymore? Shouldn't search work ...
4 years, 3 months ago (2016-08-24 18:58:00 UTC) #6
luoe
https://codereview.chromium.org/2270033003/diff/1/third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js File third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js (right): https://codereview.chromium.org/2270033003/diff/1/third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js#newcode238 third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js:238: row.createChild("td").textContent = "\n"; On 2016/08/24 18:57:09, dgozman wrote: > ...
4 years, 3 months ago (2016-08-24 20:31:01 UTC) #7
luoe
On 2016/08/24 20:31:01, luoe wrote: > https://codereview.chromium.org/2270033003/diff/1/third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js > File > third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js > (right): > > ...
4 years, 3 months ago (2016-08-30 17:44:57 UTC) #9
luoe
On 2016/08/30 17:44:57, luoe wrote: > On 2016/08/24 20:31:01, luoe wrote: > > > https://codereview.chromium.org/2270033003/diff/1/third_party/WebKit/Source/devtools/front_end/components/DOMPresentationUtils.js ...
4 years, 3 months ago (2016-08-30 18:52:15 UTC) #10
luoe
Replaced searchableElement with formattedMessage. Previously, searchableElement existed to prevent stack traces and anchors from being ...
4 years, 3 months ago (2016-08-30 19:31:47 UTC) #11
dgozman
Thanks, I defer to lushnikov@ here.
4 years, 3 months ago (2016-08-30 20:26:31 UTC) #12
lushnikov
https://codereview.chromium.org/2270033003/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js File third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js (right): https://codereview.chromium.org/2270033003/diff/60001/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js#newcode1253 third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js:1253: contentElement: function() can we switch to contentElement altogether? looks ...
4 years, 3 months ago (2016-08-31 00:08:12 UTC) #13
luoe
Notes: - Filtering and searching now includes timestamps - I changed CVM:toString() so that it ...
4 years, 3 months ago (2016-08-31 17:52:02 UTC) #14
lushnikov
https://codereview.chromium.org/2270033003/diff/80001/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js File third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js (right): https://codereview.chromium.org/2270033003/diff/80001/third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js#newcode660 third_party/WebKit/Source/devtools/front_end/console/ConsoleView.js:660: lines.push(message.formattedMessage().deepTextContent()); why do we still use formatMessage?
4 years, 3 months ago (2016-09-06 19:30:29 UTC) #15
luoe
Removed formattedMessage(). ContentElement() still uses the helper _formatMessage(). this._anchorElement and this._messageElement no longer need to ...
4 years, 3 months ago (2016-09-06 21:50:29 UTC) #16
luoe
Gentle ping
4 years, 3 months ago (2016-09-09 00:44:56 UTC) #17
luoe
After an offline discussion, it seems that we should put refactoring into future CLs. Please ...
4 years, 3 months ago (2016-09-12 22:20:59 UTC) #19
lushnikov
lgtm lgtm
4 years, 3 months ago (2016-09-14 01:25:00 UTC) #20
luoe
Post-lgtm, I've added a line and verified that repeated messages are now shown in the ...
4 years, 3 months ago (2016-09-14 23:01:12 UTC) #21
luoe
Removed post-lgtm changes, moved them to a future cl.
4 years, 3 months ago (2016-09-16 18:08:17 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2270033003/200001
4 years, 3 months ago (2016-09-16 18:08:56 UTC) #35
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 3 months ago (2016-09-16 18:15:21 UTC) #37
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 18:18:34 UTC) #39
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/78ecc7501f1856b791cf5ff65811da03871f72f1
Cr-Commit-Position: refs/heads/master@{#419218}

Powered by Google App Engine
This is Rietveld 408576698