User Guide
Chapter 11
Preventing and Handling
Errors
ColdFusion includes many tools and techniques for ensuring that your code works
properly. These tools include sophisticated debugging and code validation tools,
error logging tools, and error handling mechanisms. This chapter describes these
tools and presents approaches to troubleshooting common problems.
ColdFusion Studio also provides interfaces for debugging application pages and for
dynamically validating multiple levels of HTML and CFML code. This chapter does
not discuss debugging in ColdFusion Studio.
Contents
• Debug Settings in the ColdFusion Administrator.................................................192
• CFML Code Validation............................................................................................194
• Troubleshooting Common Problems....................................................................195
• Error Handling in ColdFusion................................................................................197
• Generating Custom Error Messages with cferror .................................................199
• Logging Errors .........................................................................................................202
• Handling Exceptions in ColdFusion......................................................................204