Not sure if this is what you mean - but I posted this before:
<cffunction name="trace">
<cfargument name="s">
<cfset var g = "">
<cfsavecontent variable="g">
<cfdump var="#arguments.s#">
</cfsavecontent>
<cftrace text="#g#">
</cffunction>
This way you can dump any variable out to the trace area below your
output at any stage in a CFC, without breaking flow.
i.e.
<cffunction ...>
<cfscript>
a = StructNew();
a.fred = "foo";
trace(a);
//do other stuff.
</cffunction>
HTH
Mark
On 7/25/05, Sameer Kekade <[EMAIL PROTECTED]> wrote:
> 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/
>
--
E: [EMAIL PROTECTED]
W: www.compoundtheory.com
ICQ: 3094740
---
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/