writeDump

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. Equivalent to the cfdump tag, useful in cfscript.

writeDump(var [, expand] [, format] [, abort] [, hide] [, keys] [, label] [, metainfo] [, output] [, show] [, showUDfs] [, top]) → returns void

Argument Reference for the writeDump function

var

Required: Yes
Variable to display. Enclose a variable name in pound
signs.

expand

Required: No
Default: YES
Yes: In Internet Explorer and Mozilla, expands views

format

Required: No
Default: text
specify whether to save the results of a cfdump to a file in text or HTML format Values:
  • html
  • text

abort

Required: No
Default: NO
Boolean value to immediately abort after displaying the dump.

hide

Required: No
hide column or keys.

keys

Required: No
For a structure, number of keys to display.

label

Required: No
A string; header for the dump output.

metainfo

Required: No
Default: YES
Includes information about the query in the cfdump results.

output

Required: No
Default: browser
Where to send the results of cfdump. Values:
  • browser
  • console
  • filename

show

Required: No
show column or keys.

showUDfs

Required: No
Default: YES
show UDFs in cfdump output.

top

Required: No
The number of rows to display.

Examples sample code invoking the writeDump function


Dump Server Scope

writeDump(server);

Fork me on GitHub