03-17-2021, 05:02 AM
I use the FirePHP extension in Firefox. Super convenient, and shows arrays as arrays, objects as objects, etc.
best way to debug CI
|
03-17-2021, 05:02 AM
I use the FirePHP extension in Firefox. Super convenient, and shows arrays as arrays, objects as objects, etc.
03-17-2021, 03:32 PM
(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.
03-17-2021, 04:43 PM
(01-19-2021, 05:29 PM)richb201 Wrote: I use phpStorm and xdebug and they work great together. I am debugging in a docker container too, just to make it a little more complexYeah, PhpStorm is very good! |