Here's a more thourough explaination of how to use cfdump and other ways you can use CF to display data. It has some really good code examples too!
http://ray.camdenfamily.co
Main Topics
Browse All TopicsI want to be able to dump the values of all local variables I have created a Coldfusion page. There is the <CFDUMP var="#XXX#"> tag where XXX is a struct (e.g. form, url, cgi, cookie, application, session, client) but if I create a local variable such as
<CFSET a = 1>
<CFSET b = 2>
some code .....
<CFSET c = 3>
and I want to be able to put some code at the bottom of this page to dump all of these variables or just add them to a list like
<CFSET localvars = "a,b,c">
Is there a <CFDUMP> tag or some other tag or way I can do this without manually parsing the file myself?
Thanks,
Abdullah
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here's a more thourough explaination of how to use cfdump and other ways you can use CF to display data. It has some really good code examples too!
http://ray.camdenfamily.co
Try
<cfdump var="#variables#">
If you want to dump any other scope, you can use:
<cfdump var="#form#">
<cfdump var="#request#">
etc.
If you want to dump them all, I'd just write a simple UDF. That said, if you have a moderately complex app, dumping all the scopes will decimate your page with too much information.
Your UDF could be:
<cffunction name="dumpAll">
<cfdump var="#variables#">
<cfdump var="#request#">
...(whatever else you want dumped)
</cffunction>
Then just call <cfset dumpAll()>
Sunny
Business Accounts
Answer for Membership
by: Ike23Posted on 2005-09-23 at 18:06:28ID: 14949412
I'm not quite sure what you are trying to do but you can create a list rather easily:
ut>
<cfset MyList = "">
<cfset MyList = "ListAppend(MyList,#a#)">
<cfset MyList = "ListAppend(MyList,#b#)">
<cfset MyList = "ListAppend(MyList,#c#)">
<cfoutput>#MyList#</cfoutp
Let me know if that isn't what you are trying to do...
Ike23