Debugging on my Mac

sandman79's picture
Hi, I found this slightly dated post (http://www.drupal.org.uk/debugging-drupal-act...) about debugging on windows. Does anyone have any recommendations for a debugging package for me to use on my Macbook? I'm running MAMP and have decided that my php skills are at the level where I should now be delving into the world of trying to debug my myriad problems... Any suggestions greatly received. Cheers
RayVaughn's picture

Eclipse

You could use Eclipse with the PDT package which is open source and free. I have used Zend Studio which is based on Eclipse very succesfully for debugging, but I understand that most of the functionality of Zend Studio is available as free plugins. Getting used to Eclipse takes some time but the productivity increase is well worth it. Marcus
sandman79's picture

thanks a lot mate,

thanks a lot mate, appreciate it. Will give it a go...

You probably want Xdebug as

You probably want Xdebug as well, not sure if it bundled on the Mac. Also devel.module is uber-useful ... simply bunging dsm($my_array_or_object) in your code is often handier than firing up the full debugger and faffing around with breakpoints.

Giles Kennedy --> www.alexoria.co.uk

hunthunthunt's picture

Nice one

I didn't know of the dsm() function within devel. Nice overview here: http://drupal.org/node/174575

Netbeans?

I find that a combination of XAMPP/MAMP, XDebug, and Netbeans is great for developing/debugging PHP/Drupal. I also use Eclipse PDT but only because, as of v6.5, Netbeans cannot handle virtual hosts (as far as I can tell, and apparently they're working on this for v7.) You can download the PHP version of Netbeans at: http://www.netbeans.org/downloads/start.html?... Hope that helps, Wes