Adobe ColdFusion 8

writeDebug

Description

Writes text output into the debug stream. This text is displayed to the end-user only if the tag contains the debug attribute (check for this attribute using the Request.debug method).

Category

Response interface

Syntax

public void writeDebug(String output)

See also

debug

Parameters

Parameter

Description

output

The text to output

Example

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

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