402
Chapter 18: Debugging and Troubleshooting Applications
•
In-line in your application page
When you specify the
inline
attribute in a
cftrace
tag,
ColdFusion displays the trace output on the page at the
cftrace
tag location
. (
An inline
cftrace
tag does not display any output if it is inside a
cfsilent
tag block.)
The
cftrace
tag executes only if you select Enable Debugging on the ColdFusion MX
Administrator Debugging Settings page. To display the trace results in the debugging output, you
must also specify Tracing Information on the Debugging Settings page; otherwise, the trace
information is logged and inline traces are displayed, but no trace information appears in the
debugging output.
Note:
When you use in-line trace tags, ColdFusion sends the page to the browser after all page
processing is completed, but before it displays the debugging output from the debug template. As a
result, if an error occurs after a trace tag but before the end of the page, ColdFusion might not display
the trace for that tag.
An in-line trace messages look like the following:
The following table lists the displayed information:
ColdFusion logs all
cftrace
output to the file logs\cftrace.log in your ColdFusion installation
directory.
A log file entry looks like the following:
"Information","web-29","04/01/02","13:21:11","MyApp","[501 ms (1st trace)]
[C:\CFusionMX\wwwroot\MYStuff\NeoDocs\tractest.cfm @ line: 14] - [UDF End]
[MyStatus = Success] GetRecords UDF call has completed "
This entry is in standard ColdFusion log format, with comma-delimited fields inside double-
quote characters. The information displayed in the trace output is in the last, message, field.
Entry
Meaning
Trace type (severity) specified in the
cftrace
call; in this case,
Information.
[CFTRACE 13:21:11.011]
Time when the
cftrace
tag executed.
[501 ms]
Time taken for processing the current request to the point of
the
cftrace
tag.
[C:\CusionMX\wwwroot\MYStuff\
NeoDocs\tractest.cfm]
Path in the web server of the page that contains the
cftrace
tag.
@ line:14
The line number of the
cftrace
tag.
[UDF End]
Value of the
cftrace
tag
category
attribute.
GetRecords UDF call has completed The
cftrace
tag
text
attribute with any variables replaced
with their values.
MyStatus Success
Name and value of the variable specified by the
cftrace
tag
var
attribute.
Содержание ColdFusion MX
Страница 1: ...Developing ColdFusion MX Applications...
Страница 22: ...22 Contents...
Страница 38: ......
Страница 52: ...52 Chapter 2 Elements of CFML...
Страница 162: ......
Страница 218: ...218 Chapter 10 Writing and Calling User Defined Functions...
Страница 250: ...250 Chapter 11 Building and Using ColdFusion Components...
Страница 264: ...264 Chapter 12 Building Custom CFXAPI Tags...
Страница 266: ......
Страница 314: ...314 Chapter 14 Handling Errors...
Страница 344: ...344 Chapter 15 Using Persistent Data and Locking...
Страница 349: ...About user security 349...
Страница 357: ...Security scenarios 357...
Страница 370: ...370 Chapter 16 Securing Applications...
Страница 388: ...388 Chapter 17 Developing Globalized Applications...
Страница 408: ...408 Chapter 18 Debugging and Troubleshooting Applications...
Страница 410: ......
Страница 426: ...426 Chapter 19 Introduction to Databases and SQL...
Страница 476: ...476 Chapter 22 Using Query of Queries...
Страница 534: ...534 Chapter 24 Building a Search Interface...
Страница 556: ...556 Chapter 25 Using Verity Search Expressions...
Страница 558: ......
Страница 582: ...582 Chapter 26 Retrieving and Formatting Data...
Страница 668: ......
Страница 734: ...734 Chapter 32 Using Web Services...
Страница 760: ...760 Chapter 33 Integrating J2EE and Java Elements in CFML Applications...
Страница 786: ...786 Chapter 34 Integrating COM and CORBA Objects in CFML Applications...
Страница 788: ......
Страница 806: ...806 Chapter 35 Sending and Receiving E Mail...