activeCollab can run in three different modes, based on the value of the DEBUG directive. Possible values are:
- 0 - debugging is off. In case of a system error, activeCollab will just print an error message and stop working.
- 1 - default mode used for the system in the production environment. In case of a system error, activeCollab displays a brief error message to the user without reveling any sensitive system information and sends an email notification to the administrator, with all relevant information included. The recipient for this kind of notification is configured within the ADMIN_EMAIL directive.
- 2 - debug mode used for troubleshooting and development. In this mode activeCollab logs entire execution process in the /logs folder. Logged information is grouped by day. In case of a system error, detailed error with all relevant system information is displayed to the user, but no email will be sent.
When troubleshooting, you should raise the debug level to 2. Open the config/config.php and change the value of the DEBUG directive to 2. If the DEBUG directive is not present in config/config.php, then you can add it yourself by adding the following line to the file:
define('DEBUG', 2);
It is strongly recommended that you use debug mode only for debugging. When you are done debuggin, revert the value back to 1 to avoid revealing any sensitive information to the users within your activeCollab.