You can try Cflog?
Or sometimes I use the following function
In the calling function, use return returnVal(value); -
<cffunction name="returnVal" access="private"
hint="Returns a struct to the invoking page with the
result and error information."
output="no" returntype="struct">
<cfargument name="value" required="yes" type="any">
<cfargument name="message" required="no"
default="success!" type="string">
<cfargument name="error" required="no" default="false"
type="boolean">
<cfscript>
theStruct = structnew();
theStruct.error = arguments.error;
theStruct.message = arguments.message;
theStruct.value = arguments.value;
return theStruct;
</cfscript>
</cffunction>
Hth
Sameer
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Chad
Renando
Sent: Monday, 25 July 2005 12:36 PM
To: CFAussie Mailing List
Subject: [cfaussie] debug in cffunction
I am getting into the whole cffunction thing thanks to incorporating
cfajax. What is the best way to debug inside a cffunction?
Cheers,
Chad
who searches for Ultimate Truth in his spare time
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/