Ideal way to debug php server ?

  • 2 Replies
  • 1599 Views
Ideal way to debug php server ?
« 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 ?

*

Oren

  • **
  • 59
Re: Ideal way to debug php server ?
« Reply #1 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

Re: Ideal way to debug php server ?
« Reply #2 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).

 

Sitemap 1 2 3 4 5 6 7 8