Your typical Xdebug primer for OSX
Submitted by Simon Hobbs on the 11th of August, 2011 at 2:59pm
I will be presenting Xdebug at the Drupal Melbourne Meetup next month. For those who are interested, here is a primer about the various tools I use, and there should be enough information for most people to set these tools up for themselves. I am focussing on my personal development environment, including MAMP (Free version) and Netbeans IDE. The benefit of MAMP is that it now ships with Xdebug. The main points I cover in this article are:
- MAMP configuration
- Editing php.ini to enable Xdebug
- Pretty error messages with Xdebug
- In-line debugging in Netbeans
- Creating a cachegrind profile
- Visualising the cachegrind profile with Graphviz
- Creating a trace file with Xdebug