Dump()

edit

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.

Dump( var=object, expand=boolean, format=string, hide=string, keys=numeric, label=string, metainfo=boolean, output=string, show=string, showUDFs=boolean, top=numeric, abort=boolean, eval=string );

Returns: void

Argument Description
var
object, optional
edit

Variable to display.

expand
boolean, optional
edit

expands views

format
string, optional
edit

specify the output format of the dump, the following formats are supported:

  • simple: - a simple HTML output (no JavaScript or CSS)
  • text (default output="console"): plain text output (no HTML)
  • html (default output="browser"): regular output with HTML/CSS/JavaScript
  • classic: classic view with HTML/CSS/JavaScript
hide
string, optional
edit

hide column or keys.

keys
numeric, optional
edit

For a structure, number of keys to display.

label
string, optional
edit

header for the dump output.

metainfo
boolean, optional
edit

Includes information about the query in the cfdump results.

output
string, optional
edit

Where to send the results:

  • console: the result is written to the console (System.out).
  • browser (default): the result is written to the browser response stream.
show
string, optional
edit

show column or keys.

showUDFs
boolean, optional
edit

show UDFs in cfdump output.

top
numeric, optional
edit

The number of rows to display.

abort
boolean, optional
edit

stops further processing of the request.

eval
string, optional
edit

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

Examples

edit
dump(getTimeZoneInfo());

See also