Print content of JavaScript object?

javascript, object

Solution

If you are using Firefox, `alert(object.toSource())` should suffice for simple debugging purposes.

Problem

Typically if we just use `alert(object);` it will show as `[object Object]`. How to print all the content parameters of an object in JavaScript?

Original source

Related problems