trace
Displays and logs debugging data about the state of an application at the time the cftrace tag executes. Tracks runtime logic flow, variable values, and execution time. Displays output at the end of the request or in the debugging section at the end of the request; CFML logs cftrace output to the file logs\cftrace.log, in the CFML installation directory. Note: To permit this tag to execute, you must enable debugging in the CFML Administrator. Optionally, to report trace summaries, enable the trace section.
trace([var] [, text] [, type] [, category] [, inline] [, abort]) → returns void
Argument Reference
var string
text string
type string
Default: information
information
informationwarningerrorfatal information
category string
inline boolean
Default: false
false
abort boolean
Default: false
false
Compatibility
ColdFusion:
Lucee:
Examples Sample code invoking the trace function
© 2012–present Foundeo, Inc. and the CFDocs contributors.
Licensed under the MIT License.
ColdFusion is a trademark of Adobe Systems Incorporated.
https://cfdocs.org/trace