Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /data/sites/web/remonpelnl/www/wp-content/themes/remonpel_nl__child__twentyfourteen/functions.php on line 32
Pretty-print PHP debug and error output – Remons TechNotes

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.

Confidental Infomation
stop spam mail