The new, Fetch version of ColdFusion Debugging (with Flair)

This post is more than 2 years old.

I've done a lot of playing around with ColdFusion's debug and exception templates. As I like to remind people - these templates are all CFML and open source. You can play with them to your hearts content. You should be careful obviously, especially if you modify the exception template. This "play" is what led to the ColdFire project.

Earlier today a reader said they asked Adobe to consider modifying the default debug and exception templates and how they handle queries. Specifically, they wanted to replace the ? for bound parameters with the real values. This makes complex queries with lots of bound parameters much easier to read. I quickly wrote up a mod to the debug template, default.cfm. To use this file, save it in your debug folder and select it from the ColdFusion Administrator. It works the exact same as the classic debugging, except it will attempt to replace bound parameters. Enjoy. I'll mod the exception template a bit later today given enough free time.

As a reminder - if you use ColdFire, this is baked in as well.

There are two movie references in this title. A free copy of CFWACK Book two to the first person to name them. (With the understanding I have to find time to get to the UPS store, and it may take me a week or so, and with Christmas, you may not get it to January.)

Download attached file.

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by Nick posted on 12/11/2007 at 10:21 PM

Fetch - Mean Girls
Flair - Office Space

Booya.

Comment 2 by Raymond Camden posted on 12/11/2007 at 10:22 PM

And we have a winner...

Comment 3 by Kevin posted on 12/11/2007 at 10:27 PM

Ray,
Fetch is from Mean Girls (and it's not catching on). I'll think i fthe other one soon...

Also, ColdFire is great, thanks for that.

Comment 4 by Kevin posted on 12/11/2007 at 10:28 PM

@Nick, darn it, you beat me to it... well done.

Comment 5 by Nick posted on 12/11/2007 at 10:36 PM

Cinemaphile Powers Activate.

Comment 6 by Leon Miller-Out posted on 12/12/2007 at 12:30 AM

Ray, that's funny you should post this today... I just posted mine yesterday - except mine is a mod to dockable.cfm. Check it out at
http://singlebrook.blogspot...

Comment 7 by Aaron Longnion posted on 12/12/2007 at 1:03 AM

another version, with additional functionality:

http://cfzen.instantspot.co...

Comment 8 by Raymond Camden posted on 12/12/2007 at 1:10 AM

Nice - I'm very happy to see I'm not the only one "playing" in this area.

Comment 9 by Nathan Mische posted on 12/12/2007 at 1:36 AM

And just in case you don't have access to the debug templates there are my CF Debug Copy plug-ins for IE and Firefox:

http://www.mischefamily.com...

http://cfdebugcopy.riaforge...

Comment 10 by Todd Rafferty posted on 1/4/2008 at 4:04 AM

I took your version and cleaned it up the default classic debug template even further. I condensed some code sections and display portion, put an actual (usable) stylesheet on it and such.

http://www.web-rat.com/down...

I plan to keep widdling away at this. Maybe sections can be rewritten to be more efficient.

Comment 11 by Todd Rafferty posted on 1/4/2008 at 4:05 AM

Blargh, my english sucks today. I took your version and cleaned up the default classic debug template even further.

Comment 12 by Raymond Camden posted on 1/4/2008 at 6:30 PM

Nice work, Todd.