Taking James's idea forward, what is your CF version, because writedump
will work only in version 9 & later. If you are on version 8 or earlier, you have to use <cfdump var="#someVar#">
If you have to use it in cfscript
, then you can write your own custom function
<cffunction name="myDump" returntype="void">
<cfargument name="arg" required="true" type="any">
<cfdump var="#Arguments.arg#">
</cffunction>
and then call this function inside cfscript
block
mydump(somevar);