Jump to main content Jump to doc navigation

modX::setDebug

Sets the debugging features of the modX instance.

Syntax

API Doc: modX::setDebug()

boolean|int setDebug ([boolean|int $debug = true], [boolean $stopOnNotice = false])

Example

Turn debug mode on, and tell the process to stop if Notices occur:

$modx->setDebug(true);

See Also

modX.setDebug