[Webkit-unassigned] [Bug 152039] New: Web Inspector: console.dir should expand objects
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 8 22:48:33 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=152039
Bug ID: 152039
Summary: Web Inspector: console.dir should expand objects
Classification: Unclassified
Product: WebKit
Version: WebKit Local Build
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
Assignee: webkit-unassigned at lists.webkit.org
Reporter: nvasilyev at apple.com
CC: bburg at apple.com, graouts at webkit.org,
joepeck at webkit.org, mattbaker at apple.com,
nvasilyev at apple.com, timothy at apple.com,
webkit-bug-importer at group.apple.com
Created attachment 266970
--> https://bugs.webkit.org/attachment.cgi?id=266970&action=review
[Image] Actual/Expected
See the attached image.
console.log and console.dir of the following object shows a preview that isn't expandable (since it's lossless) and not very readable.
[
{
startOffset: 26,
endOffset: 65,
executionCount: 1
},
{
startOffset: 66,
endOffset: 76,
executionCount: 1000
},
{
startOffset: 77,
endOffset: 84,
executionCount: 1
},
{
startOffset: 85,
endOffset: 112,
executionCount: 1000
},
{
startOffset: 113,
endOffset: 151,
executionCount: 0
},
{
startOffset: 152,
endOffset: 161,
executionCount: 1
},
{
startOffset: 162,
endOffset: 171,
executionCount: 1000
},
{
startOffset: 172,
endOffset: 173,
executionCount: 1
}
])
Arrays with less than 10 items seem to be always logged as unexpandable (lossless) preview.
I had to add leading zeros to force it to be expandable.
I suggest always expand objects logged with console.dir and keep console.log as is.
This way it would be up to developers to decide which output they want.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151209/4b7688bf/attachment.html>
More information about the webkit-unassigned
mailing list