CF_ObjDump
CF_ObjDump will display the entire contents of any ColdFusion object as a tree.
It can even process WDDX strings and display the contents within its tree. This
tag is emmense help when debugging large chunks of data being stored in memory.
This is based on the tag "CF_ObjectDump" written by Nathan Dintenfass & Ben Archibald.
This version was re-written from the ground up to output a more "tree-like"
output. If you're running IE4/5, there is support for DHTML which will allow you to
browse the tree much like Window's Explorer
Example
Ç
Ê
CF_ObjDump (1)
by Dan G. Switzer, II
objTest
|
wddxPacket
|
form4
|
form
|
wddxpacket
|
|
occupation
|
|
newsletters
|
|
mailinglist
|
YES
|
name
|
|
format
|
|
email
|
|
|
url
|
http://webdev.oar.net/dswitzer/forms/example3_1.cfm
|
key
|
http://webdev.oar.net/dswitzer/forms/example3_1.cfm
|
title
|
WDDX Form Wizard: Example 3 (Page 1)
|
|
form3
|
form
|
wddxpacket
|
|
occupation
|
|
newsletters
|
|
mailinglist
|
YES
|
name
|
Blankman
|
format
|
|
email
|
asdasda
|
|
url
|
http://webdev.oar.net/dswitzer/forms/example1.cfm?page=3
|
key
|
http://webdev.oar.net/dswitzer/forms/example1.cfm?page=3
|
title
|
WDDX Form Wizard: Example 1 (Page 3)
|
|
form2
|
form
|
wddxpacket
|
|
occupation
|
3
|
newsletters
|
2,3
|
mailinglist
|
YES
|
name
|
Bob Smith
|
format
|
ASCII
|
email
|
bsmith@pengoworks.com
|
|
url
|
http://webdev.oar.net/dswitzer/forms/example1.cfm?page=2
|
key
|
http://webdev.oar.net/dswitzer/forms/example1.cfm?page=2
|
title
|
WDDX Form Wizard: Example 1 (Page 2)
|
|
form1
|
form
|
wddxpacket
|
|
occupation
|
1,2
|
newsletters
|
1,2,3,4
|
mailinglist
|
YES
|
name
|
Dan Switzer
|
format
|
HTML
|
email
|
dswitzer@pengoworks.com
|
|
url
|
http://webdev.oar.net/dswitzer/forms/example1.cfm?page=1
|
key
|
http://webdev.oar.net/dswitzer/forms/example1.cfm?page=1
|
title
|
WDDX Form Wizard: Example 1 (Page 1)
|
|
totalforms
|
4
|
|
aryTest
|
aryTest[1]
|
Cruisin' World
|
aryTest[2]
|
Time Crisis 2
|
aryTest[3]
|
Blitz 99
|
aryTest[4]
|
Clean Sweep Crane
|
aryTest[5]
|
Gauntlet Legends
|
aryTest[6]
|
Ghost Train
|
|
qryGetData
|
Row 1
|
NAME
|
Cruisin' World
|
TYPE
|
Racing
|
PLAYERS
|
2
|
NEW
|
|
|
Row 2
|
NAME
|
Time Crisis 2
|
TYPE
|
Shoot 'Em Up
|
PLAYERS
|
2
|
NEW
|
|
|
Row 3
|
NAME
|
Blitz 99
|
TYPE
|
Sports
|
PLAYERS
|
2
|
NEW
|
|
|
Row 4
|
NAME
|
Clean Sweep Crane
|
TYPE
|
Redemption
|
PLAYERS
|
1
|
NEW
|
|
|
Row 5
|
NAME
|
Gauntlet Legends
|
TYPE
|
Adventure
|
PLAYERS
|
4
|
NEW
|
|
|
Row 6
|
NAME
|
Ghost Train
|
TYPE
|
Redemption
|
PLAYERS
|
1
|
NEW
|
|
|
|
aryTest2
|
aryTest2[1]
|
aryTest2[1][1]
|
Hello!
|
aryTest2[1][2]
|
Dan
|
|
aryTest2[2]
|
aryTest2[2][1]
|
Goodbye!
|
aryTest2[2][2]
|
<B>Dan</B>
|
|
|
|
QUERY
|
STRUCTURE
|
ARRAY
|
NUMERIC
|
DATE
|
STRING
|
* Underlined keys are WDDX packets
|
Error!
The object SESSION,APPLICATION,CGI,FORM,URL,REQUEST,COOKIE is not a valid object.
Make sure you specify a valid ColdFusion objects (structure, query, array, variable, etc.)
Also, make sure you are not evaluating the contents of the object, but are
providing CF_ObjMerge with the name of your object. (i.e. use "SESSION", not "#SESSION#".)
Error!
The object AllObjects is not a valid object.
Make sure you specify a valid ColdFusion object type (structure, query, array, variable, etc.)
Also, make sure you are not evaluating the contents of the object, but are
providing CF_ObjDump with the name of your object. (i.e. use "SESSION", not "#SESSION#".)
Download CF_ObjDump.zip