Save Extra Cost & Increase Your ROI Buy Now

How to Set Development/Debug Mode in Code-igniter Project ?

By Bdtask Last Updated -- Tuesday, 2020-11-03

If you are developing custom features for Bdtask any software or you are experiencing internal server error, you can turn to debug mode to see any error messages.

To turn to debug/development mode navigate to the directory where Bdtask script is installed and find index.php.

Open the file and find:

define(‘ENVIRONMENT’, ‘production’);
Change this to: define(‘ENVIRONMENT’, ‘development’);

In case there are errors thrown that can be visible on the screen, you will be able to see the errors now, additionally, the errors will be logged in application/logs, you may want to check this directory too.

Be aware that in development mode you may see some errors and deprecation warnings, for this reason, it’s always recommended to set the environment to “production” if you are not actually developing some features/modules or trying to test some code.