> You are correct but stuff slips through the cracks. It's how well you can
> track back the error to the source when it occurs that will dictate if the
> code will be fixed when or if it happens. I can show a pretty nice user
> friendly error, but the question remains the same. How will I track errors
> in my site back to the template it occurs on and how did the user create
> that error. Simply put, Adobe has not developed much of an error tracking
> system. Now a days, I am tracking not only every click event and on which
> element up the DOM tree but also using that information when catching server
> errors that will help me figure out how it happened. I'd bet some of the
> other developers here would pay good money to have the same system in place
> for their websites.

I'm not sure where you're going with this. First, compile-time errors
shouldn't ever "slip through the cracks". A compile-time error means
that a script was never tested AT ALL. It's the developer's
responsibility to check for compile-time errors.

Second, you don't really need to ask how the user creates a
compile-time error, because it will occur if ANY user runs the script
that can't compile. It doesn't matter what the user did - it's not a
runtime exception.

Third, it's pretty trivial to add error handling to your application.
The site-wide error handler can capture a lot of information about
compile-time errors or runtime exceptions. The onError event (or
CFERROR tag, if you're still using Application.cfm) can capture a lot
of information about runtime exceptions - you can easily capture all
values sent to the server for the request that generated the
exception. You can log them in an existing log file or a custom log
file using CFLOG.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338398
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to