cfabort for cfscript
There is a version of this on cflib, but I need a little more. From cfscript, you and pass a whole scope to dump it and stop page execution.
cfabort(LOCAL);
</cfscript>
<cfargument name="dumpme" required="false"/>
<cfif structkeyexists(arguments,"dumpme")>
<cfdump var="#arguments.dumpme#"/>
</cfif>
<cfabort/>
</cffunction>


<cffunction name="dump" returntype="void" output="true">
<cfdump var="#arguments#" />
</cffunction>
<cffunction name="abort" returntype="void" output="false">
<cfset dump(argumentCollection=arguments) />
<cfabort>
</cffunction>
If you do any component development at all, you these to the base component.
Add the functions to the following to the file <cfinstall dir>\wwwroot\WEB-INF\cftags\component.cfc
Then both abort and dump will be available from any of your components. You would be able to do something like the following.
<cfscript>
someObj = createObject('component', 'path.to.obj');
someObj.dump(avar=structNew());
someObj.dump(var1='abc', var2=arrayNew(1));
someObj.abort('abc', '123', 'somethingsomethingsomething');
</cfscript>
Good ideas! Much better idea to just dump the whole arguments scope. That would be nice putting the functions into component.cfc too
Thank you for putting these example on the net!
Alec