Description
A function equivalent to the <cfdump> tag which can be used in <cfscript>.
Parameters
Same as <cfdump> tag.
Category
Other functions, Data output functions
A function equivalent to the <cfdump> tag which can be used in <cfscript>.
Same as <cfdump> tag.
Other functions, Data output functions
WriteDump (var, output, format, abort, label, metainfo, top, show, hide, keys, expand, showUDFs);
ColdFusion 11: Attributes passed to this function needs to be in a comma-separated format.
ColdFusion 9: Added this function.
You can call this function providing arguments as name=value pair or as positional arguments.For positional notations, the sequence must be followed exactly in the same manner as provided in the syntax. If you do not provide one of the parameters, use an empty string instead. This does not apply to Boolean values for which you must provide proper values even if you have to skip them.
<cfscript> filename = "log.txt"; try { result = FileOpen(expandpath(filename)); WriteDump(result); } catch(Expression exception) { WriteOutput("<p>An Expression exception was thrown.</p>"); WriteOutput("<p>#exception.message#</p>"); WriteLog(type="Error", file="myapp.log", text="[exception.type] #exception.message#"); } </cfscript>