[Webkit-unassigned] [Bug 38664] Web Inspector: add a "table" method to console, to allow output of tabular data

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 1 08:42:44 PDT 2010


--- Comment #29 from Patrick Mueller <pmuellr at yahoo.com>  2010-06-01 08:42:42 PST ---
(In reply to comment #15)

> 6) Expandable log
> var object = {father: {name: "Mike", age: 30}, son: {name: "John", age: 5}};
> console.table("My Family", object);
> + My Family
> The user needs to expand to see the actual data.

I'm still not convinced of the need for the title passed as a parameter.  I see two primary use cases:

- iterative calls in the console REPL

You have some data, you just want to dump it.  You don't care about a title, and you certainly don't want the data display in a contracted form that you HAVE to expand to see - you just want to see it.

- elaborate calls from your scripts

You may have some data that you'd like to have really nicely formatted, with headers, grouped, etc, which you encode directly in your script so you don't have to type it all the time.  In this case, wrappering your table.console() call(s) with console.group()/console.groupEnd() doesn't seem like such a huge burden to me.

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list