<cfdump>

Outputs the elements, variables and values of most kinds of CFML objects. Useful for debugging. You can display the contents of simple and complex variables, objects, components, user-defined functions, and other elements.

Usage

<cfdump
    [show=string]
    [hide=string]
    [output=string]
    [var=any]
    [abort=boolean]
    [async=boolean]
    [metainfo=boolean]
    [eval=string]
    [top=number]
    [expand=boolean]
    [label=string]
    [showudfs=boolean]
    [keys=number]
    [format=string]
><!--- body --->[</cfdump>]

This tag may have a body.

This tag has no cfscript support or it uses a different syntax.

Attributes

Attribute Description
show
(string, optional)

show column or keys.

hide
(string, optional)

hide column or keys.

output
(string, optional)

Where to send the results: - browser: the result is written the the browser response stream (default). - console: the result is written to the console (System.out). - false: output will not be written, effectively disabling the dump.

var
(any, optional)

Variable to display. Enclose a variable name in pound signs.

abort
(boolean, optional)

stops further processing of request.

async
(boolean, optional)

if true and output is not to browser, Lucee builds the output in a new thread that runs in parallel to the thread that called the dump. please note that if the calling thread modifies the data before the dump takes place, it is possible that the dump will show the modified data.

metainfo
(boolean, optional)

Includes information about the query in the cfdump results.

eval
(string, optional)

name of the variable to display, also used as label, when no label defined.

top
(number, optional)

The number of rows to display.

expand
(boolean, optional)

expands views

label
(string, optional)

header for the dump output.

showudfs
(boolean, optional)

show UDFs in cfdump output.

keys
(number, optional)

For a structure, number of keys to display.

format
(string, optional)

specify the output format of the dump, the following formats are available by default: - html - the default browser output - text - this is the default when outputting to console and plain text in the browser - classic - classic view with html/css/javascript - simple - no formatting in the output You can use your custom style by creating a corresponding file in the lucee/dump/skins folder. Check the folder for examples.

Examples

There are currently no examples for this tag