·

photo credit: Blowfly via photopin (license)

How to install XDebug on OSX

As a follow-up on my previous post, this post explains how you can easily install XDebug on your OSX webdevelopment configuration, making your life as a developer a whole lot easier.

  1. If you haven’t done it already, read this post.
  2. Download the pre-compiled XDebug package from the website of ActiveState.
  3. Take the xdebug.so-file and put it in usr/lib/php/extensions/no-debug-non-zts-20090626/
  4. Copy /etc/php.ini.default to /etc/php.ini (if it doesn’t already exist).
  5. It could be that the php.ini file is read only. In that case:
  6. Now edit the php.ini file and add the following at the bottom:
  7. Restart apache:

Done! You can now start debugging your PHP projects with your favorite IDE.

Visitors give this article an average rating of 3.0 out of 5.

How would you rate this article?

One thought on “How to install XDebug on OSX”

  1. Marco Bax says:

    Goed artikel. bedankt!

Leave a Reply