I am using a third party library that provide some callbacks for a widget, but I’m not sure what the callback parameter objects are (no docs on them).
Is there a way to just dump all the attributes of an object in javascript, then print them using alert(), maybe? I just want to see what methods and attributes they contain,
Thanks
Well, you can enumerate all object properties using the
for...instatement, for example:But for debugging purposes I would highly encourage you to get a real debugger, like Firebug.
With the Console API you can easily examine objects on the fly.