Setting up Eclipse with PDT and Zend Debugger

Events happening in the community are now at Drupal community events on www.drupal.org.
arcane's picture

Would anyone mind going through a session on how to set up Eclipse with the Zend Debugger. I have been able to debug and set breakpoints on index.php but am having major issues trying to set breakpoints on modules.

Comments

Recommendation for XDebug

jkinner's picture

I strongly recommend XDebug. It's the only thing I have been able to make consistently work, plus it is used by PHPUnit to build coverage reports. Has anyone had a good experience with Eclipse + Zend debugging?

XDebug

jakemonO's picture

I've had a devil of a time setting up XDebug on Vista 64 (my workstation) I'd be very interested in a more robust solution. I'm holding out hope that my uber-IDE will be NetBeans 6.5, now with PHP support.

I will try XDebug

arcane's picture

I'd appreciate a walkthrough either way. I suspect I am doing something procedurally wrong in trying to debug modules though not related to the configuration of Zend Debugger.

Still having problems? Is

ericduran's picture

Still having problems?

Is your whole Drupal installation in your eclipse project? or just the module you're trying to debug?

Yes, the entire drupal site

arcane's picture

Yes, the entire drupal site was imported into eclipse.

Have you done the steps

ericduran's picture

Have you done the steps listed in this article,

http://drupal.org/node/157609

Tours the bottom there's a lot of information on getting this fix.

If none of that helps. Make sure that when you open the run dialog the file settings match your folder set up.
I found it to be easier to check on auto generate under the URL settings box and make sure that matches your folder structure. If it doesn't just match your folder structure to that and and you should be fine.

This usually doesn't match when you have your Drupal installation under a folder under your root web directory because eclipse expect your project file to be the root directory or when your Drupal installation is a different name than the project in eclipse.

Yes

arcane's picture

Yes I have followed the steps but I noticed that my perspective is not shifting automatically to the debug.

A topic for the next meetup?

tom_o_t's picture

This seems like a good session to cover at the next meetup. I guess there's probably many in the audience (myself included) that have never used debugging. Anyone willing to present on this?

If there's enough request

ericduran's picture

If there's enough request then I wouldn't mind presenting on it.

one vote

benjaminlhaas's picture

I would most definitely like to see a presentation on this. Thanks!

Drupal Xdebug and Eclipse

Would you like to view the values of all site variables one line at a time while your Drupal code is running on a multisite installation on Vista, using open source Eclipse and Xdebug? Visit http://sites.google.com/site/drupaldebugmultisite/ for details.

oops

benjaminlhaas's picture

Didn't realize how old this thread was -- sorry!

Hi, I notice there are

summit's picture

Hi,
I notice there are Eclipse experts here..I have a problem using Eclipse with Drupal, see: http://drupal.org/node/661698.
Thanks for helping me! Greetings, Martijn