cfdump
Description
Use the
tag to get the elements, variables, and values of most kinds of ColdFusion objects.
cfdump
Useful for debugging. You can display the contents of simple and complex variables, objects,
components, user-defined functions, and other elements.
Category
Debugging
tags,
Syntax
<cfdump
var = "#variable#"
expand = "yes" or "no"
label = "text"
top = "number of rows or levels">
See also
cfcookie, cfparam, cfsavecontent, cfschedule, cfset, cftimer,
History
•
ColdFusion MX 7: Added the
•
ColdFusion MX 6.1: Added the ability to dump COM objects; it displays the methods and
Get and Put properties typeinfo information for the object.
Attributes
Attribute
Req/Opt
var
Required
expand
Optional
label
Optional
top
Optional
116
Chapter 2: ColdFusion Tags
Variable manipulation tags
attribute.
top
Default
Description
Variable to display. Enclose a variable name in number signs.
These kinds of variables yield meaningful
• array
• CFC
• COM object
• Java object
• simple
• query
• structure
• UDF
• wddx
• xml
yes
• yes: in Internet Explorer and Mozilla, expands views.
• no: contracts expanded views.
A string; header for the dump output.
9999
The number of rows to display. For a structure, this is the
number of nested levels to display.
cfwddx
displays:
cfdump