CodeIgniter Forums
best way to debug CI - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9)
+--- Thread: best way to debug CI (/showthread.php?tid=70900)

Pages: 1 2


RE: best way to debug CI - John_Betong - 03-17-2021

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.


RE: best way to debug CI - kenjis - 03-17-2021

(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 complex Smile.  A few years ago someone up on this forum recommended phpStorm, and I'd say it was one of the best decisions I have ever made. I am an IDE centric guy from way back.
Yeah, PhpStorm is very good!


RE: best way to debug CI - machoman - 05-15-2021

I am a newbie learning PHP and also using firephp extension it is really awesome and helping me a lot in my university project.