The new CFDUMP in CFMX is full of surprises. Not only can you dump ColdFusion variables but just about everything else. Dumping functions gives you all the detail you could want about the variables to pass in, the appropriate format and more.
Cut and paste this little snippet and try it for yourself:
<cffunction name="titleFormat" returntype="string">
<cfargument name="text" type="string" default="Hmm.. title is missing.">
<cfset title = "<h3>#text#</h3>">
<cfreturn title>
</cffunction><cfdump var="#titleFormat#" label="titleFormat()">
<cfoutput>#titleFormat("Hello cruel world!")#</cfoutput>
Voila! Another fine result.

Posted by modius at 07:01 PM | Permalink
Trackback: http://blog.daemon.com.au/cgi-bin/dmblog/mt-tb.cgi/16


Just an FYI - you can also dump script based UDFs, but you won't see as much information.
Posted by: Raymond Camden on August 1, 2002 10:34 PM