TestProject Forum

General => General Questions => Topic started by: Maor on May 23, 2016, 20:05:49 pm

Title: Ideal way to debug php server ?
Post by: Maor on May 23, 2016, 20:05:49 pm
What's the best way to debug a PHP server ?

currently I'm debugging with echo messages, var_dump and printing to log file

How can I debug php server normally ?
Title: Re: Ideal way to debug php server ?
Post by: Oren on May 24, 2016, 19:52:29 pm
Your safest bet is to work with XDEBUG in Eclipse

You can find guides online
http://www.fieg.nl/setting-up-xdebug-for-eclipse
Title: Re: Ideal way to debug php server ?
Post by: jackar56 on January 08, 2018, 13:27:07 pm
If you're using apache as your web server, then you could use the apache logs to view any errors preventing the successful execution of a PHP script.

You could use

tail -f /var/log/apache2/error.log
to view the apache logs and that would do the job (atleast for a subset of PHP related errors).