> when debugging with coldfusion tags i use the cfoutput and cfdump tags alot 
> but how can i use these tags and the cfabort tag within cfscript, or how can 
> i get the > same effect as these tags? A common practice is to create a udf 
> that wraps the functionality of a cf tag, so:

<cffunction name="dump">
    <cfargument name="var" type="any" required="true">
    <cfargument name="expand" type="boolean" required="false" default="true">
    <cfargument name="label" type="string" required="false" default="">

    <cfdump var="#arguments.var#" expand="#arguments.expand#"
label="#arguments.label#">
</cffunction>

<cfscript>
   aArray = ArrayNew(1);
   aArray[3] = 'fooey';
   dump(aArray);
</cfscript>

Dominic
-- 
Blog it up: http://fusion.dominicwatson.co.uk

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:305745
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to