modX.setDebug
Last updated Apr 6th, 2019 | Page history | Improve this page | Report an issue
modX::setDebug¶
Sets the debugging features of the modX instance.
Syntax¶
API Doc: modX::setDebug()
boolean|int setDebug ([boolean|int $debug = true])
-
$debug
(string) Boolean or bitwise integer describing the debug state and/or PHP error reporting level
Example¶
Turn debug mode on, and tell the process to stop if Notices occur:
$modx->setDebug(true);