Tags · Functions · Objects
Lucee Tag Reference
Choose a tag:

Tag <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.

Body

This tag may have a body.

Example

	<cfDump
		[abort="boolean"]
		[async="boolean"]
		[eval="any"]
		[expand="boolean"]
		[export="boolean"]
		[format="string"]
		[hide="string"]
		[keys="number"]
		[label="string"]
		[metainfo="boolean"]
		[output="string"]
		[show="string"]
		[showudfs="boolean"]
		[styles="struct"]
		[top="number"]
		[var="any"]>

	[</cfDump>]
	

Attributes

The attributes for this tag are fixed. Except for the following attributes no other attributes are allowed.
Name Type Required Description
abort boolean No stops further processing of request. 
async boolean No 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. 
eval any No name of the variable to display, also used as label, when no label defined. 
expand boolean No expands views 
export boolean No You can export the serialised dump with this function. 
format string No 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. 
  • hide string No hide column or keys. 
    keys number No For a structure, number of keys to display. 
    label string No header for the dump output. 
    metainfo boolean No Includes information about the query in the cfdump results. 
    output string No 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. 
  • show string No show column or keys. 
    showudfs boolean No show UDFs in cfdump output. 
    styles struct No You can override styles in Application.cfc by settings this.tag.dump to a struct with styles. 
    top number No The number of rows to display. 
    var any No Variable to display. Enclose a variable name in pound signs.