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

Issue 2012033002: DevTools: more previews when formatting logged arrays/objects (Closed)

Created:
4 years, 7 months ago by luoe
Modified:
4 years, 6 months ago
Reviewers:
kozy, dgozman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, sergeyv+blink_chromium.org, 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: more previews when formatting logged arrays/objects BUG=607681, 607682

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Code cleanup #

Total comments: 2

Messages

Total messages: 5 (2 generated)
luoe
Hi, I'm uploading this CL for review, even though I'm still working on the tests. ...
4 years, 6 months ago (2016-06-13 23:33:52 UTC) #2
dgozman
What a patch! I feel that it's too big to understand. Can we break it ...
4 years, 6 months ago (2016-06-14 09:08:30 UTC) #3
luoe
4 years, 6 months ago (2016-06-14 17:49:29 UTC) #4
Yes... I can break out the patch into a few CLs:
- TreeElements in a TreeOutline can display alternate valueElements when
expanded
- Make every object/array/function expandable with an arrow
- Show more previews, use character cutoffs in previews (along with a doc)
- Separate CL for tests

https://codereview.chromium.org/2012033002/diff/40001/third_party/WebKit/Sour...
File third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js
(right):

https://codereview.chromium.org/2012033002/diff/40001/third_party/WebKit/Sour...
third_party/WebKit/Source/platform/v8_inspector/InjectedScriptSource.js:350:
generatePreview = descriptor.name !== "__proto__";
On 2016/06/14 09:08:30, dgozman_slow wrote:
> I don't get this change.

In another place, I changed a call to getProperties to use generatePreview =
true.  The intent of this line is to never generate a preview for the __proto__,
since it looks strange, especially when not expecting it.

I'll make a note to describe this in the doc.

Powered by Google App Engine
This is Rietveld 408576698