Dump

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 [, expand [, format [, hide [, keys [, label [, metainfo [, output [, show [, showUDFs [, top [, abort [, eval ] ] ] ] ] ] ] ] ] ] ] ] ] )

Returns: void

Argument Description
var
object, optional

Variable to display.

expand
boolean, optional

expands views

format
string, optional

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

hide column or keys.

keys
numeric, optional

For a structure, number of keys to display.

label
string, optional

header for the dump output.

metainfo
boolean, optional

Includes information about the query in the cfdump results.

output
string, optional

Where to send the results:

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

show column or keys.

showUDFs
boolean, optional

show UDFs in cfdump output.

top
numeric, optional

The number of rows to display.

abort
boolean, optional

stops further processing of the request.

eval
string, optional

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

Examples

dump(getTimeZoneInfo());

See also