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.
public boolean debug()
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" ) ; }