Welcome Guest, Not a member yet? Register   Sign In
best way to debug CI
#11

(This post was last modified: 03-17-2021, 03:34 PM by John_Betong.)

Try using <?PHP STRICT_TYPES=1); at the start of every PHP file (it is not hereditary and only applies to that file). This ensures warnings are not “swept under the carpet”, errors are raised instead and require fixing before proceeding.

Also set error_reporting(-1):, which is maximum errors.

Only disable ini_set(‘display_errors’, ‘false’); on production to ensure both errors and warnings are logged.
Reply


Messages In This Thread
best way to debug CI - by admin0 - 06-15-2018, 06:22 AM
RE: best way to debug CI - by php_rocs - 06-15-2018, 08:35 AM
RE: best way to debug CI - by InsiteFX - 06-15-2018, 09:35 AM
RE: best way to debug CI - by admin0 - 06-15-2018, 10:26 AM
RE: best way to debug CI - by admin0 - 06-15-2018, 10:32 AM
RE: best way to debug CI - by admin0 - 06-15-2018, 05:30 PM
RE: best way to debug CI - by InsiteFX - 06-16-2018, 03:23 AM
RE: best way to debug CI - by skunkbad - 06-16-2018, 12:35 PM
RE: best way to debug CI - by cloder - 01-19-2021, 01:33 AM
RE: best way to debug CI - by richb201 - 01-19-2021, 05:29 PM
RE: best way to debug CI - by kenjis - 03-17-2021, 04:43 PM
RE: best way to debug CI - by John_Betong - 03-17-2021, 03:32 PM
RE: best way to debug CI - by machoman - 05-15-2021, 03:47 AM
RE: best way to debug CI - by abbasshams - 06-11-2021, 11:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB