3-1-Tags:CFDump
last edited by
lmajano
on 23-Aug-2009
cfdump
Description
Outputs variables for debugging purposes in a structured HTML format. Using CFDUMP, you can display the contents of simple variables, queries, arrays, structures, xml, and WDDX variables created with CFWDDX.
Category
Other
Implemented
Usage Syntax
<cfdump [var="Any"] [eval="Any"] [expand="Boolean"] [label="String"] [maxlevel="number"] [type="String"] [top="number"] [showUDFs="Boolean"] [show="String"] [output="String"] [metainfo="Boolean"] [keys="number"] [hide="String"] [format="String"] [abort="Boolean"] />
[] = Optional attribute
Attributes
| Name | Type | Required | Default | Description |
| var | Any | No | Variable to display. Enclose a variable name in pound signs | |
| eval | Any | No | Name of Variable to display. | |
| expand | Boolean | No | not supported at the moment | |
| label | String | No | string; header for the dump output. | |
| maxlevel | number | No | ||
| type | String | No | type of the dump (alias for format) | |
| top | number | No | ||
| showUDFs | Boolean | No | ||
| show | String | No | ||
| output | String | No | ||
| metainfo | Boolean | No | ||
| keys | number | No | ||
| hide | String | No | ||
| format | String | No | ||
| abort | Boolean | No | abort execution of page after execution of dump tag |
Example Usage
Example 1:
<cfset variables.foo = 2> <cfdump var="#variables.foo#"> <cfset variables.mystruct = { foo = 1, bar = 2 }> <cfdump var="#variables.mystruct#"> <cfset variables.myarray = [1,2,3,4,5,6,7,8]> <cfdump var="#variables.myarray#">
SideBar
User Login
Comments (