How to show ColdFusion robust exceptions
Posted by Joe Rebis (Import) on 22 September 2006 11:59 PM
For security reasons we do not enable ColdFusion robust exception messages. Robust exception messages can be helpful when developing applications because of the detail that ColdFusion provides (much more than most languages). However, this information can reveal too much information as well.
To be able to see the robust debugging information, you should use the CFERROR tag in your application. We have included an example below, but there is more to this tag than this. Check your ColdFusion documentation. We would also suggest that you use CFTRY, CFCATCH and CFTHROW.
Insert the following two lines at the top of page you want to debug or preferably in your application.cfm page:
<cferror type="exception" template="error.cfm">
<cferror type="request" template="error.cfm">
Create an error.cfm page and FTP it into into the same directory as your application.cfm page:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<li><b>Your Location:</b> #error.remoteAddress#
<li><b>Your Browser:</b> #error.browser#
<li><b>Date and Time the Error Occurred:</b> #error.dateTime#