Weedpacket;11032805 wrote:There are other suggestions in the [thread=10240608]Debugging 101[/thread] thread. I myself am quite fond of Xdebug.
I discovered Xdebug fairly recently in my programmer life; it's been VERY helpful at times; especially as a project gets more complex and you need to trace vars/objects/properties through a process iteration.
echo() and print_r() still work on SO many things, though; I really think use of the CLI should be something a programmer is required to learn as well.
Lastly, and the real reason for this post: LOG FILES, BABEH!!! 😃
For devel servers, I set this in php.ini:
error_reporting = E_ALL
error_log = /var/log/php_error_log
Boom! Always a place to look for errors. 🙂
Just make ABSOLUTELY SURE you've got disk space, especially if you've got a debugging install of PHP (which you will have if you have Xdebug set up) 😉 😉