How to show ColdFusion robust exceptions Print

  • 0


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" />

<title>ColdFusion Error</title>




<h2>ColdFusion Error</h2>



<li><b>Your Location:</b></li>


<li><b>Your Browser:</b></li>


<li><b>Date and Time the Error Occurred:</b></li>






<li><b>Message Content:</b>:


<li><b>Query String:</b></li>


<li><b>Generated Content:</b></li>






REF: For more information on the cferror tag, see the Adobe Reference site for cferror


Was this answer helpful?

« Back