modX.setDebug
Last updated Apr 14th, 2021 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$301 per month—let's make that $500!
Learn moremodX::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);
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$301 per month—let's make that $500!
Learn more