Is there a javascript version of PHP's krumo()
? It's really helpful.
Use console.log()
. If your object is myObject
, call it like:
console.log(myObject);
Then open the Javascript console in your browser (Chrome, Firefox, Safari, IE, etc.) to see the output.
Back in the early days, you needed to install an extension like Firebug, but all modern browsers now include this helpful debugging functionality.