Adobe ColdFusion 8

CCFXRequest::WriteDebug

Syntax

void CCFXRequest::WriteDebug(LPCSTR lpszOutput)

Description

Writes text output into the debug stream. The text is only displayed to the end-user if the tag contains the Debug attribute. (For more information, see CCFXRequest::Debug.)

Parameters

Parameter

Description

lpszOutput

Text to output

Example

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

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