This post is about setting up XMAPP on a mac with xdebug.
The first thing we are going to do is to change the document root inside xampp to the ‘Sites’ folder. Changing the DocumentRoot has a few benefits – one being that its far easier to get to in the finder and your editor!
This will allow you to have proper debugging for your php apps. In the long run this will save you hours of time.
[Zend] zend_extension = /full/path/to/xdebug.so xdebug.remote_enable = 1 xdebug.remote_port = 9000 xdebug.remote_host = localhost
Now you have a decent setup you should configure SVN or git to handle your version tracking. Personally I use git and have developed a workflow that I am comfortable with – this takes time and the only real way to know what works and what doesn’t is to try lots of options and stick with the ones that work for you.
A few hints: http://localhost/phpmyadmin will take you to a local phpmyadmin install where you can create databases, etc. You should configure a password on your mysql to keep it safe though =)
You can also install mysqlworkbench this will make changing your database and adding / manipulating data much easier.
You will now be able to use any debugger that works with xdebug – eclipse has built in debugging, so does netbeans. macGDBp is good too =)