Seeing the contents of a javascript object, how do i do it

I come from php, where I use var_dump to see the contents of a object.

In javascript there is no var_dump, so how do you guys see the contents of your objects?

I would like an easy way to see js objects, maybe firebug does it and a function to dump the contents of an object.

Thanks in advance,

console.log(varname) for chrome and firefox w/ firebug.

If you go into the develop tools in any browser (other than Firefox which doesn’t have it unless you install the Venkman extension) you will find a full debugger there that is similar to that available in many other languages (and which you will therefore find much easier to work with than firebug - which is intended more for use with HTML and CSS and so works differently from the way a programmer would expect).