CFDump and CFAbort Makes Debugging Inside CFSilent Possible
Posted June 8, 2006 at 9:49 AM by Ben Nadel
I was just posting a comment over on Dave Carabetta's blog about CFDump and I thought I would mention it here also. I am a HUGE fan of CFSilent. I like to try an limit the amount of the data that I have to send to the browser. One of the pains of CFSilent though is that it makes debugging harder since you can't just output variables... they are not added to the buffer.
One day, I discovered, quite by accident, that if you run a CFAbort inside of a CFSilent tag, then the buffer created inside the CFSilent is actually appending to the output buffer. What this little gem means is that if you run a CFDump and then CFAbort tag inside of CFSilent, you get to see the CFDump data! Granted, the page terminates, but heck, if you are debugging, this is fantastic!
- Wanted: Full-Time ColdFusion Developer at Intoria Internet Architects
- Cold Fusion Senior Developer at Edge Information Management
- Back-End Web Developer-Information Technologist at Michigan State University
- ColdFusion Developer at Nonfat Media
- Mid-to-Senior Level Web Application Developer at SiteVision, Inc.
Apologies for feeble attempts to contact you. I posted a comment on another blog entry page, also, but don't know if you will receive it, so send this on a more recent entry's comment.
I will also try sending regular email to "firstname.lastname@example.org" or some such.
Would you be so good as to assist me in getting "Psycheclone" installed on nine3.com?
My new server's web stats package is impossible to use after the first few days of the month.
Cass, I am sorry, but I don't really know what Psycheclone is. I only know that it is not a real-world user and hence, I treat it as if it was a web-spider. Good luck finding more info about it. I can tell you that many people have been searching for Psycheclone information lately.