Displays and logs debugging data about the state of an application at the time this function 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.

Trace( var=string, text=string, type=string, category=string, inline=boolean, abort=boolean, follow=boolean );

Returns: void

Argument Description
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.

string, optional

string, which can include simple variable, but not complex variables such as arrays.

string, optional

Corresponds to the cflog type attribute:

  • Information
  • Warning
  • Error
  • Fatal Information
string, optional

string name for identifying trace groups

boolean, optional

if true displays trace code in line on the page in the location of the trace function, addition to the debugging information output.

boolean, optional

stops further processing of the request.

boolean, optional

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


There are currently no examples for this function 20,295ms WARN No examples for function trace

See also