Load WordPress Sites in as fast as 37ms!

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
    extension=xdebug.so
    but do add
    zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
    to /etc/php.ini
  3. set
    html_errors = On
    also
  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.