Pretty-print PHP debug and error output

I know, I know, it’s been a while. Having had a very very busy month, no time for any blogging whatsoever, it’s now time for a new post. It’s just a quick note, however. How to make your var_dump()s and php-errors more readable and esthetically pleasing?

  1. Open the terminal and go
    Shell commandsudo pecl install xdebug
  2. do not add
    but do add
    to /etc/php.ini
  3. set
    html_errors = On
  4. restart apache
    Shell commandsudo apachectl restart

have fun y’all!

Author: Remon Pel

WebDeveloper though not WebDesigner

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Confidental Infomation
stop spam mail