Adobe ColdFusion 8

CCFXRequest::Debug

Syntax

BOOL CCFXRequest::Debug(void) 

Description

Checks whether the tag contains the Debug attribute. Use this function to determine whether to write debug information for a request. For more information, see CCFXRequest::WriteDebug.

Returns

Returns True if the tag contains the Debug attribute; False, otherwise.

Example

The following example checks whether the Debug attribute is present, and if it is, it writes a brief debug message:

if ( pRequest->Debug() )
    {
                        pRequest->WriteDebug( "Top secret debug info" ) ;
    }