[JS] Firefox debugging with Firebug Console API
I’ve found always useful using Bin-Blog’s dump function to explore the properties of an object or an array (like a PHP print_r) but now I’ve discovered that console.dir function does the same:
a = ['a', 1, true]; console.dir(a);console.dir function will produce in output console this result:
>>> a = ['a', 1, true]; console.dir(a) 0 "a" 1 1 2 true