Two of the most common debugging tasks are displaying variables and
identifying bottlenecks. For years I relied on CFDUMP and CFABORT to display
variables and getTickCount() to calculate processing time and identify
slow-running code.
Indeed these wonderful tags and functions have long been the quintessential
toolkit of any ColdFusion developer.
In the approach above I used and tags to display the value
of a variable. Want to display a few variables? The screen quickly becomes a
rainbow of purple, green, and gray as you look for your variables. While the
wonders of CFDUMP probably deserve their own article, Adobe recently
introduced a powerful new tag called CFTRACE.
Introducing CFTrace
With CFTRACE, you can easily display changing variable values either in... (more)
"...If Debugging is the art of taking bugs out of programs, Programming must
be the art of putting them in_"
Regardless of your planning or level of experience, script errors ("bugs")
may initially prevent your server-side scripts from working correctly. This
means that debugging, or the process of finding and correcting scripting
errors, is crucial for the development of successful and robust CFML
applications and JavaScript scripts.
While most of you might say, " Well, I already know all that; this is
obvious," knowing the rules and following them are two different things. If ... (more)