398
Chapter 18: Debugging and Troubleshooting Applications
The exception information includes information about any application exceptions that are caught
and handled by your application code or by ColdFusion MX.
Exceptions represent events that disrupt the normal flow of an application. You should catch and,
whenever possible, recover from forseeable exceptions in your application, as described in
Chapter
14, “Handling Errors,” on page 285
. However, you might also want to be alerted to caught
exceptions when you are debugging your application. For example, if a file is missing, your
application can catch the
cffile
exception and use a backup or default file instead. If you enable
exception information in the debugging output, you can immediately see when this happens.
Trace points
In the Administrator, when Tracing Information is selected on the Debugging Settings page, the
debugging output includes the results of all
cftrace
tags, including all tags that display their
results in-line. Therefore, the debugging output contains a historical record of all trace points
encountered in processing the request. This section looks like the following figure when you use
the classic.cfm output format:
For more information on using the
cftrace
tag, see
“Using the cftrace tag to trace execution”
on page 401
.
Scope variables
In the Administrator, when the Variables option and one or more variable scopes are selected on
the Debugging Settings page, the debugging output displays the values of all variables in the
selected scopes. The debugging output displays the values that result after all processing of the
current page.
By displaying selected scope variables you can determine the effects of processing on persistent
scope variables, such as application variables. This can help you locate problems that do not
generate exceptions.
The Form, URL, and CGI scopes are useful for inspecting the state of a request. They let you
inspect parameters that affect page behavior, as follows:
•
URL variables
Identify the HTTP request parameters.
•
Form variables
Identify the form fields posted to an action page.
•
CGI variables
Provide a view of the server environment following the request.
Similarly, the Client, Session, Application, and Server scope variables show the global state of the
application, and can be useful in tracing how each page affects the state of the ColdFusion
persistent variables.
Summary of Contents for COLDFUSION MX 61-DEVELOPING 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: ......