CFDUMP for JavaScript

Now that I'm doing so much Ajax & Javascript development, I'm always on the hunt for new tools to help make debugging my client-side code easier.

I was over at Pete Freitag's Blog where he pointed out some Javascript code that will let you do a CFDUMP-like dump of Javascript objects!! Here are the links:

Dump Method

This is VERY slick and extremely useful. This, in conjunction with Joe Hewitt's FireBug 1.0, makes for a nice set of debugging tools for Ajax development.

Great find Pete!

Related Blog Entries

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
Christopher Jordan's Gravatar Damn! Someone beat me to it! :o)

I've got code that does this, and I was going to jQuerify it. A buddy of mine and I were talking last summer about how if we could drill down into a javascript object it would be so much easier to debug our client side code.

So he wrote this function called "DisplayObject". It works brilliantly. A few weeks ago, I decided that since I'd not seen anyone in the jQuery world doing anything like this, that I would jQuerify my buddy's code and present it to the community as a plug-in.

Now, someone's beaten me too it. shucks. Oh, well. I'll have to have a look at this guy's code.
# Posted By Christopher Jordan | 12/22/06 2:57 PM
Christopher Jordan's Gravatar uh... that was supposed to read:

..." I'll have to look at this guy's code. Maybe it's better than mine." ;o)
# Posted By Christopher Jordan | 12/22/06 2:58 PM
Christopher Jordan's Gravatar Wow... yeah. That's a lot slicker looking than mine. Very much more CFDump-like. The output my buddy and I came up with is much simpler, and not anywhere close to as cool lookin' as this. Big ups to Pete Freitag! :o)
# Posted By Christopher Jordan | 12/22/06 3:05 PM
Nate's Gravatar is there a way to dump all variables like this simple coldfusion handy one liner: <cfdump var="#variables#">
# Posted By Nate | 9/20/07 5:15 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.8.001.