How to enable Debug mode

Created by David Roth
Keywords:
debug mode detailed error output
Last updated by:
David Roth

Chive is distributed with debug-mode "off" which is good for performance as this enables caching in many areas.
Sometimes it is useful to set debug-mode to "on", for example for tracking down a bug or for development.

Enable Debug-Mode:

1) Open the file "index.php" in the root folder of chive.

2) Change line (4) from

 - defined('YII_DEBUG') or define('YII_DEBUG', false);

to

 - defined('YII_DEBUG') or define('YII_DEBUG', true);

After Debug is enabled, Yii will automatically write application-logs to the following directory: protected/runtime/