User Guide

C HAPTER 8
Chapter 8 Debugging and Error Handling
ColdFusion includes sophisticated debugging and code validation tools. This
chapter gives an overview of the debugging options available in the ColdFusion
Administrator and how to enable CFML attribute validation.
In addition, the ColdFusion Server offers a means to catch and process exceptions in
ColdFusion application pages, through the CFTRY, CFCATCH, and CFTHROW tags.
ColdFusion Studio provides interfaces for debugging application pages and for
dynamically validating multiple levels of HTML and CFML code. For information on
using these features, see Using ColdFusion Studio.
Contents
Debug Settings in the ColdFusion Administrator ......................................... 90
CFML Code Validation..................................................................................... 91
Troubleshooting Common Problems............................................................. 91
Generating Custom Error Messages (CFERROR)........................................... 93
Overview of Exception Handling in ColdFusion ........................................... 94
Exception Information in CFCATCH.............................................................. 97
Exception handling strategies....................................................................... 100
Exception handling example......................................................................... 100
Custom Exception Types ............................................................................... 102