390
Chapter 18: Debugging and Troubleshooting Applications
Configuring debugging in the ColdFusion MX Administrator
ColdFusion can provide important debugging information for every application page requested
by a browser. The ColdFusion MX Administrator lets you specify which debugging information
to make available and how to display it. The following sections briefly describe the Administrator
settings. For more information, see the online Help for the Debugging pages.
Debugging Settings page
In the Administrator, the following options on the Debugging Settings page determine the
information that ColdFusion displays in debugging output:
Option
Description
Enable Robust
Exception
Information
Enables the display of the following information when ColdFusion displays
the exception error page. (Cleared by default.)
•
Path and URL of the page that caused the error
•
Line number and short snippet of the code where the error was identified
•
Any SQL statement and data source
•
Java stack trace
Enable Debugging
Enables debugging output. When this option is cleared, no debugging
information is displayed, including all output of
cftrace
calls. (Cleared by
default.)
You should disable debugging output on production servers. Doing so
increases security by ensuring that users cannot see debugging information. It
also improves server response times. You can also limit debugging output to
specific IP addresses; for more information, see
“Debugging IP addresses
page” on page 392
.
Select Debugging
Output Format
Determines how to display debugging output:
•
The classic.cfm template (the default) displays information as plain HTML
text at the bottom of the page.
•
The dockable.cfm template uses DHTML to display the debugging
information using an expanding tree format in a separate window. This
window can be either a floating pane or docked to the browser window. For
more information on the dockable output format, see
“Using the
dockable.cfm output format” on page 399
.
Report Execution
Times
Lists ColdFusion pages that run as the result of an HTTP request and displays
execution times, ColdFusion also highlights in red pages with processing
times greater than the specified value, and you can select between a summary
display or a more detailed, tree structured, display.
General Debug
Information
Displays general information about the request: ColdFusion MX Version,
Template, Time Stamp, User Locale, User Agent, User IP, and Host Name.
Database Activity
Displays debugging information about access to SQL data sources and
stored procedures. (Selected by default.)
Exception
information
Lists all ColdFusion exceptions raised in processing the request. (Selected by
default.)
Tracing information
Displays an entry for each
cftrace
tag. When this option is cleared, the
debugging output does not include tracing information, but the output page
does include information for
cftrace
tags that specify
inline="Yes"
.
(Selected by default.)
For more information on using the
cftrace
tag, see
“Using the cftrace tag to
trace execution” on page 401
.
Summary of Contents for ColdFusion MX
Page 1: ...Developing ColdFusion MX Applications...
Page 22: ...22 Contents...
Page 38: ......
Page 52: ...52 Chapter 2 Elements of CFML...
Page 162: ......
Page 218: ...218 Chapter 10 Writing and Calling User Defined Functions...
Page 250: ...250 Chapter 11 Building and Using ColdFusion Components...
Page 264: ...264 Chapter 12 Building Custom CFXAPI Tags...
Page 266: ......
Page 314: ...314 Chapter 14 Handling Errors...
Page 344: ...344 Chapter 15 Using Persistent Data and Locking...
Page 349: ...About user security 349...
Page 357: ...Security scenarios 357...
Page 370: ...370 Chapter 16 Securing Applications...
Page 388: ...388 Chapter 17 Developing Globalized Applications...
Page 408: ...408 Chapter 18 Debugging and Troubleshooting Applications...
Page 410: ......
Page 426: ...426 Chapter 19 Introduction to Databases and SQL...
Page 476: ...476 Chapter 22 Using Query of Queries...
Page 534: ...534 Chapter 24 Building a Search Interface...
Page 556: ...556 Chapter 25 Using Verity Search Expressions...
Page 558: ......
Page 582: ...582 Chapter 26 Retrieving and Formatting Data...
Page 668: ......
Page 734: ...734 Chapter 32 Using Web Services...
Page 760: ...760 Chapter 33 Integrating J2EE and Java Elements in CFML Applications...
Page 786: ...786 Chapter 34 Integrating COM and CORBA Objects in CFML Applications...
Page 788: ......