<cftrace>

Displays and logs debugging data about the state of an application at the time the cftrace tag executes.

This tag may have a body.

This tag is also supported within <cfscript>

Attribute Description
caller
struct, optional

scope used for var evaluation, if not defined the current scope is used.

text
string, optional

User-defined string, which can include simple variable, but not complex variables such as arrays. Outputs to cflog text attribute

follow
boolean, optional

If true, Lucee follows the object defined in the [var] attribute and will log any changes to it. Ignored when attribute [var] is not defined.

var
string, optional

The name of a simple or complex variable to display.

        Useful for displaying a temporary value, or a value that
        does not display on any CFM page.
abort
boolean, optional

Calls cfabort tag when the tag is executed

category
string, optional

User-defined string for identifying trace groups

type
string, optional

Corresponds to the cflog type attribute; displays an appropriate icon.

  • Information
  • Warning
  • Error
  • Fatal
inline
boolean, optional

Displays trace code in line on the page in the location of the cftrace tag, addition to the debugging information output.

<cftrace
    [caller=struct]
    [text=string]
    [follow=boolean]
    [var=string]
    [abort=boolean]
    [category=string]
    [type=string]
    [inline=boolean]
><!--- body --->[</cftrace>]

Examples

There are currently no examples for this tag.

See also