Adobe ColdFusion 8

debug

Description

Checks whether the tag contains the debug attribute. Use this method to determine whether to write debug information for this request. For more information, see writeDebug.

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

Category

Request interface

Syntax

public boolean debug()

See also

writeDebug

Example

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

if ( request.debug() )
{
    response.writeDebug( "debug info" ) ;
}