development.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | ERROR DISPLAY
  5. |--------------------------------------------------------------------------
  6. | In development, we want to show as many errors as possible to help
  7. | make sure they don't make it to production. And save us hours of
  8. | painful debugging.
  9. |
  10. | If you set 'display_errors' to '1', CI4's detailed error report will show.
  11. */
  12. error_reporting(E_ALL);
  13. ini_set('display_errors', '1');
  14. /*
  15. |--------------------------------------------------------------------------
  16. | DEBUG BACKTRACES
  17. |--------------------------------------------------------------------------
  18. | If true, this constant will tell the error screens to display debug
  19. | backtraces along with the other error information. If you would
  20. | prefer to not see this, set this value to false.
  21. */
  22. defined('SHOW_DEBUG_BACKTRACE') || define('SHOW_DEBUG_BACKTRACE', true);
  23. /*
  24. |--------------------------------------------------------------------------
  25. | DEBUG MODE
  26. |--------------------------------------------------------------------------
  27. | Debug mode is an experimental flag that can allow changes throughout
  28. | the system. This will control whether Kint is loaded, and a few other
  29. | items. It can always be used within your own application too.
  30. */
  31. defined('CI_DEBUG') || define('CI_DEBUG', true);