hypernetware — 2011-10-02T20:06:13-04:00 — #1
I come from php, where I use var_dump to see the contents of a object.
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,
oddz — 2011-10-02T22:48:34-04:00 — #2
console.log(varname) for chrome and firefox w/ firebug.
felgall — 2011-10-02T22:52:01-04:00 — #3
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).