Open Bug 698954 Opened 13 years ago Updated 2 years ago

better console dump() API for debugging chrome code.

Categories

(Firefox :: General, defect)

defect

Tracking

()

People

(Reporter: harth, Unassigned)

Details

I'm a big user of dump() for debugging components in chrome code. I've been using node.js's console.log() for dumping command-line messages and it's been nice [http://nodejs.org/docs/v0.5.10/api/stdio.html].

There's talk in bug 616586 about creating an API for logging to the error console, but I think it would be nice to be able to console.log() / console.error() to the command line.

A big downside to dump() is having to add a newline to every call. It'd also be nice to be able to have a shortcut to change console colors for debugging purposes (console.red("message")??).

It doesn't have to be 'console' of course because of the error console confusion.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.