Dump objects for debugging? (was: Draggable/Droppable question)

Dump objects for debugging? (was: Draggable/Droppable question)


> drop: function(ev, ui) {
> $(this).append(ui.draggable);
> }
I have a question related to my first one in this thread. The biggest
frustration I am having with jQuery right now is that I can't see what
is in the objects. For example, in the above code, I'd like to find a
function that lets me dump out the contents of "ev" or "ui". I come
from a ColdFusion background, and that language has a tag called
cfdump. You can feed ANY variable to cfdump (query objects, arrays,
hash/structures, etc.), and ColdFusion will dump an easy to understand
"schema" (for lack of a better word) describing the object. For
example, if I cfdump an xml tree, ColdFusion lays the tree out in a
nice schema, with parent/children relationships, values, etc. Looking
at the schema, it's easy to find out that I need to reference a value
like this: xmldoc.folders.files.file[1].name
So the question is, does jQuery have a function similar to that, or at
least something that will let me view the contents of objects?
--
Jake Munson
Kuna, ID, USA
http://www.techfeed.net/blog/
http://www.cfquickdocs.com/
http://cfformprotect.riaforge.org/