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=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:
|
|
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:
|
|
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
editdump(getTimeZoneInfo());
See also
- Debugging
- WriteDump()
- <cfdump>
- Custom CFDUMP Templates
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)