I have installed Eclipse PDT and configured with the Zend Debugger on Mac OSX Leopard/MAMP.

I can debug index.php fine and can step through the code and set breakpoints when debugging index.php.

But I cannot debug any lines from a module. These are the steps I am taking.

1. I imported my drupal project into my workspace.
2. I setup a debug configuration for "PHP Web Page". I select Zend Debugger, Default PHP Server, and then in File I select /drupal/index.php
3. In the PHP perspective, I set a breakpoint on a module (I chose About This Node module) on line 57.
4. I right click on index.php and select Debug As PHP Webpage

So navigating thru the admin menu, every page request generates a new Debug session that shows terminated (I think this means that the page request was handled). However, when I try to navigate to the appropriate node, the debug session is not stopping on any breakpoints.

What am I doing wrong? Any help would be greatly appreciated.

Comments

joshmiller’s picture

You could be getting into problems with drupal's extensive use of output buffering. This would potentially give Zend Debugger the run around.

I found an extensive discussion about this particular issue and how to resolve it here: http://drupal.org/node/157609#comment-262253

Good luck!

MJ