Last updated on
|
Also Applies to ColdFusion
Description
Determines whether debugging output will be displayed.
Returns
"Yes", if debugging information will be output; otherwise "No".
Category
Syntax
IsDebugMode()
See also
Usage
If debugging output is enabled in ColdFusion Administrator either globally or for the current machine's IP address and has not been overridden by setting the cfsetting tag showDebugOutput attribute to No, the IsDebugMode function returns Yes; No, otherwise.
Example
<cfscript> CarsArray = ["mustang", "audi", "bmw"]; for( i=1; i <= arrayLen(CarsArray); i++){ writeOutput(CarsArray[i] & "<br>"); } result = IsDebugMode(); writeoutput("Is debugging output enabled: " & result); </cfscript>
Output
mustang
audi
bmw
Is debugging output enabled: NO
Sign in to your account