| Contents > CFML Reference > ColdFusion Tags > cfdump |
|
|
|
|
||
Outputs the elements, variables and values of most kinds of ColdFusion objects. Useful for debugging. You can display the contents of simple and complex variables, objects, components, user-defined functions, and other elements.
Debugging tags, Variable manipulation tags
<cfdump
var = "#variable#"
expand = "Yes or No"
label = "text">
cfcookie, cfparam, cfsavecontent, cfschedule, cfset, cfwddx
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.
Attribute |
Req/Opt |
Default |
Description |
|---|---|---|---|
var |
Required |
|
Variable to display. Enclose a variable name in pound signs. These kinds of variables yield meaningful
|
expand |
Optional |
Yes |
|
label |
Optional |
|
A string; header for the dump output. |
The expand/contract display capability is useful when working with large structures, such as XML document objects, structures, and arrays.
To display a construct, use code such as the following, in which myDoc is a variable of type XmlDocument:
<cfif IsXmlDoc(mydoc) is "True"> <cfdump var="#mydoc#"> </cfif>
The tag output is color-coded according to data type.
If a table cell is empty, this tag displays "[empty string]".
This example shows how to use this tag to display a URL variable. URL variables contain parameters that are passed in a URL string in a page request.
<cfdump var="#URL#">
|
|
||
| Contents > CFML Reference > ColdFusion Tags > cfdump |
|
|
ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting
Version 6.1
Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/tags-p21.htm
Comments
rraga said on Dec 2, 2003 at 2:16 PM : rraga said on Dec 2, 2003 at 2:24 PM :