Barry:
 
Using output="false" is generally a good practice, so stick with it.

If you want debugging info that you can turn on/off how about using CFTRACE?  Perhaps even using it in another method in your CFC called "debug" or something like that?
 
Something like:
 
<cffunction name="debug" output="yes">
 <cfargument name="message">
 <cfif variables.debugOn>
  <cftrace text="#arguments.message#" inline="Yes">
 </cfif>
</cffunction>
 
You still won't get inline output, but it will show up in debugging and in the cftrace.log file (which, IMO, is actually easier to use for debugging in many cases)
 
 
 
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Barry Beattie
Sent: Thursday, May 20, 2004 7:32 PM
To: [EMAIL PROTECTED]
Subject: [CFCDev] CFfunction output="yes", "no", "maybe"?

Hi all

 

I’ve habitually been using output=”no" at the top of my CFC methods to try and cut down on the amount of whitespace generated (it helps a lot).

 

but is there anyway to turn this to “yes” at runtime?

 

why? I’ve got a <cfset VARIABLES.debug = FALSE> at the top of the CFC’s that, when I turn to TRUE, displays various values out using simple CFOUTPUTs (eg: data going into queries, runtime values being passed from one method to another, etc).

 

-          but it doesn’t work with _ output=”no" _

 

If I can get the output sorted, I’ll replace the VARIABLES.debug with a passed in optional parameter to set the TRUE/FALSE.

 

any suggestions? anything that’s quick and simple, not a huge logging system

 

thanx

barry.b

(barry beattie)

Reply via email to