webCOMAND

#DEBUG

Log a debug event to the event log.  When the cScript is processed as part of a publish or system task, the event will be logged to the corresponding system task.

Prototype

#DEBUG($message)

Parameters

  • message - The text to display.

Example

#/ display message in the publish System Task if published
#LIST($Contacts)
#DEBUG("Iterating over contact with OID 99492")
<p>$FirstName $LastName</p>
#ENDLIST

Related

#NOTE, #WARNING, #ERROR