Closed Bug 927352 Opened 12 years ago Closed 12 years ago

console.log(object) prints [object Object] instead of a meaningful serialization starting from FF23

Categories

(DevTools :: Console, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 843004

People

(Reporter: semper.cras, Unassigned)

Details

(Whiteboard: [dupeme])

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.66 Safari/537.36 Steps to reproduce: 1. Open developer console. 2. Log an object into it. E.g. console.log({a:1}) Actual results: Object is logged as [object Object] Expected results: Object should be logged serialized so that (at least some, if it's big) its values can be immediately seen. This behavior is standard for Chrome, Firebug and Firefox dev tools prior to FF 23.
The issue is rather critical for development, IMHO. E.g. in our case we have a huge app tested by remote QA team. If they find a bug, they attach logs. Logs where are objects are represented as [object Object] are often impossible to grasp. For IE we implemented a separate logger that makes use of JSON.stringify and console.dir. Can't believe we have to do the same sniffing+patching for the always-excellent Firefox.
Maybe a dupe.
Component: Untriaged → Developer Tools: Console
This has really bugged me for some time, since this one of the very few parts of the Firefox console that is really lacking (in comparison for both Chrome's and Firebug's consoles). Such a feature is really important for development, not only for sending logs around, but also to ease development itself, the only reason I can't stop using Firebug instead of only the native console.
This is a dupe and oft-requested. We are working on it, but thanks for the bug. :)
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Whiteboard: [dupeme]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: