Instead of printing to console (poor man’s debugger, regardless of language), I would suggest xdebug for PHP. That way you can set breakpoints, inspect variables and objects, follow function calls, resume debugging, etc. I find it to be waaay more comfortable and productive than looking at console logs.
Yes, I completely agree with you. XDebug is the best but I was looking for something simple which does not break the flow when I am in the zone of continuous coding. I used to log the details in file and then check log files for the logged information but I found this option easy and as we all know "Empty mind is devil's workshop.", I wanted to build something simple.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Instead of printing to console (poor man’s debugger, regardless of language), I would suggest xdebug for PHP. That way you can set breakpoints, inspect variables and objects, follow function calls, resume debugging, etc. I find it to be waaay more comfortable and productive than looking at console logs.
Yes, I completely agree with you. XDebug is the best but I was looking for something simple which does not break the flow when I am in the zone of continuous coding. I used to log the details in file and then check log files for the logged information but I found this option easy and as we all know "Empty mind is devil's workshop.", I wanted to build something simple.