index.php - show errors for development - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6) +--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17) +--- Thread: index.php - show errors for development (/showthread.php?tid=66790) |
index.php - show errors for development - AmitMY - 12-03-2016 In index.php, on the ENVIRONMENT switch, case 'development', there is: PHP Code: error_reporting(-1); I wonder if: a - error_reporting(E_ALL); will be more descriptive b - it would be ok to add `ini_set('display_startup_errors', 1);`, because: Quote:Even when display_errors is on, errors that occur during PHP's startup sequence are not displayed. It's strongly recommended to keep display_startup_errors off, except for debugging. final code: PHP Code: error_reporting(E_ALL); |