User Guide

Table Of Contents
Using the cftrace tag to trace execution 439
Calling the cftrace tag
The
cftrace tag takes the following attributes. All attributes are optional.
Attribute Purpose
abort A Boolean value. If you specify True, ColdFusion stops processing the current
request immediately after the tag. This attribute is the equivalent of placing a
cfabort tag immediately after the cftrace tag. The default is False. If this attribute
is True, the output of the
cftrace call appears only in the cftrace.log file. The line
in the file includes the text “[ABORTED]”.
category A text string specifying a user-defined trace type category. This attribute lets you
identify or process multiple trace lines by categories. For example, you could sort
entries in a log according to the category.
The
category attribute is designed to identify the general purpose of the trace
point. For example, you might identify the point where a custom tag returns
processing to the calling page with a “Custom Tag End” category. You can also
use finer categories; for example, by identifying the specific custom tag name in
the category.
You can include simple ColdFusion variables, but not arrays, structures, or
objects, in the category text by enclosing the variable name in number signs (#).
inline A Boolean value. If you specify True, ColdFusion displays trace output in-line in
the page. The default is False.
The
inline attribute lets you display the trace results at the place that the cftrace
call is processed. This provides a visual cue directly in the ColdFusion page
display.
Trace output also appears in a section in the debugging information display.
text A text message describing this trace point. You can include simple ColdFusion
variables, but not arrays, structures, or objects, in the text output by enclosing the
variable name in number signs (#).