![MACROMEDIA COLDFUSION 5-DEVELOPING Develop Manual Download Page 212](http://html1.mh-extra.com/html/macromedia/coldfusion-5-developing/coldfusion-5-developing_develop-manual_3293641212.webp)
192
Chapter 11 Preventing and Handling Errors
Debug Settings in the ColdFusion Administrator
ColdFusion can provide important debugging information for every application
page requested by a browser. When you enable debugging, the output displays in a
block following normal page output.
For detailed information on the debugging and logging settings in the ColdFusion
Administrator, see Advanced ColdFusion Administration.
Note
By default, when you enable any of the debugging and logging options, debug output
becomes visible to all users. To restrict debug output to specific IP addresses, use the
Debugging IPs page of the ColdFusion Administrator to specify the addresses that
can receive debugging messages.
Generating debug information for an individual page
You can view the parameters and CGI environment variables for an individual
application page without turning on the global debug settings in the ColdFusion
Administrator. Simply append the parameter
mode=debug
to the end of the URL:
www.myserver.com/cfdocs/test.cfm?mode=debug
Note
If you do not restrict access to debugging information, any browser can use this
parameter to get debugging information. To restrict access to specific IP addresses,
use the Debugging IPs page of the ColdFusion Administrator to specify the addresses
that can receive debugging messages.
Generating debug information for an individual query
You can view debug information for an individual query by putting the
debug
attribute into the opening
cfquery
tag:
<cfquery name="TestQuery" datasource="CompanyInfo" debug>
SELECT * FROM TestTable
</cfquery>
When this query runs, it places the debug information into the output page where
the query is placed.
Error messages
If ColdFusion is unable to fulfill a request because of an error, it displays a diagnostic
message in the user’s browser. The message includes a link that allows the user to
e-mail a report of the error to the site administrator. You enable the mail link feature
in the Mail Logging page of the ColdFusion Administrator. Errors are written to a log
file for later review.
Summary of Contents for COLDFUSION 5-DEVELOPING
Page 1: ...Macromedia Incorporated Developing ColdFusion Applications MacroMedia ColdFusion 5 ...
Page 58: ...38 Chapter 3 Querying a Database ...
Page 134: ...114 Chapter 7 Updating Your Database ...
Page 210: ...190 Chapter 10 Reusing Code ...
Page 232: ...212 Chapter 11 Preventing and Handling Errors ...
Page 238: ...218 Chapter 12 Using the Application Framework ...
Page 262: ...242 Chapter 12 Using the Application Framework ...
Page 278: ...258 Chapter 13 Extending ColdFusion Pages with CFML Scripting ...
Page 320: ...300 Chapter 15 Indexing and Searching Data ...
Page 336: ...316 Chapter 16 Sending and Receiving E mail ...
Page 374: ...354 Chapter 18 Interacting with Remote Servers ...