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.
- If you haven’t done it already, read this post.
- Download the pre-compiled XDebug package from the website of ActiveState.
- Take the
xdebug.so
-file and put it inusr/lib/php/extensions/no-debug-non-zts-20090626/
- Copy
/etc/php.ini.default
to/etc/php.ini
(if it doesn’t already exist). - It could be that the
php.ini
file is read only. In that case:
1chmod +w php.ini - Now edit the php.ini file and add the following at the bottom:
1234[xdebug] zend_extension=/usr/lib/php/extensions/no-debug-non-zts-20090626/xdebug.soxdebug.file_link_format="txmt://open?url=file://%f&line=%1"xdebug.remote_enable = Onxdebug.remote_autostart = 1 - Restart apache:
1apachectl restart
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?
★ ★ ★ ★ ★
Goed artikel. bedankt!