Php – Using XDebug for Drupal 6.14 on Snow Leopard

drupalosx-snow-leopardphpxdebug

Just wondering if you anybody has had much luck getting XDebug working for Drupal 6.14 on Snow Leopard?

I noticed that Snow Leopard seems to come with php 5.3 which some people say should work with Drupal 6.14, though I haven't had any luck.

After that failed, I tried installing php 5.2 using macports (checking out from CVS at a previous revision number). This works fine for php. However, I have had no such luck getting XDebug going.

Any thoughts???

Thanks!

Best Solution

If xdebug is enabled it should show up if you execute a phpinfo();. After xdebug is configured properly you can connect to it using Netbeans. Download the php version here: NetBeans Download. You will have to create a project and point netbeans to your Drupal install. After that you can set breakpoints and press run.