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

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy