Setting up Eclipse with PDT and Zend Debugger

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.

Login to post comments

Recommendation for XDebug

jkinner - Wed, 2008-11-05 20:05

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
jakemonO - Wed, 2008-11-05 21:42

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 - Wed, 2008-11-05 22:19

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
ericduran - Wed, 2008-11-12 01:15

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 - Wed, 2008-11-12 16:03

Yes, the entire drupal site was imported into eclipse.


Have you done the steps

ericduran's picture
ericduran - Wed, 2008-11-12 23:37

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 - Fri, 2008-11-14 03:28

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
tom_o_t - Wed, 2008-11-19 13:40

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
ericduran - Fri, 2008-11-21 05:29

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