Directly aborting a cfdump!

Today was a big day for us “Adobe-minded” people: Adobe’s Scotch on the Rocks tour (SotR) made its very first stop in Amsterdam, at the Dutch Adobe division.

One very cool thing pointed out by Adobe ColdFusion Product Manager Adam Lehman during one of the sessions today, was that – believe it or not – you can abort after a cfdump from within the cfdump! Like so:

<!--- Instead of typing this: --->
<cfdump var="#myVar#">
<cfabort>
 
<!--- try this: --->
<cfdump var="#myVar#" abort="true">

To make things even cooler, you don’t even need to include the “equals true” part, the following will render just fine:

<cfdump var="#myVar#" abort>

Having written hundreds, if not thousands of lines like the one above, this saves a lot of too-fast-typing, doing a couple of backspaces and correcting your spelling just to do a simple piece of debugging. Does this make life easier or what?

3 comments to “Directly aborting a cfdump!”

That’s cool, but you don’t say what version you can do that in. CF9?

It does indeed work on CF9. Didn’t get the chance to test it on CF8 or below though.

Only works on CF9. No wonder we didn’t know about it yet.
Does not throw an error on CF8, just doesn’t abort.

BTW, my favourite way of doing this:
[Ctrl][Shift][D] » Variable name » [End] » [Ctrl][Shift][A]
Yeah, that’s fast.

Leave a reply