Eclipse Debugging with Zend Debugging Extension for PHP 5.3: New location for downloads

New URL for Zend debugging plugin (now called Studio Web Debugger)

If you're a user of Eclipse with the Zend Debugging Extension and you've tried to use PHP 5.3, you may have noticed that the traditional download location doesn't have it.

The new location for downloading the Zend debugging extension is Get the "Studio Web Debugger" for your platform and architecture (requires registration). (Note that the old location for this was, which is still referred to on many places on the web. This old location has libraries only up through PHP 5.2, but if that's all you need, will work fine.)

Basic debugging with Eclipse Galileo is covered in

That was the main news. But to make sure it actually worked I did a quick runthrough of installing Eclipse Galileo on Ubuntu 10.04 Lucid Lynx from scratch. This is essentially the same as what's in, but with less detail.

Bonus: Quick install of Eclipse Galileo with debugger on Debian/Ubuntu

  1. Install the Zend debugging extension obtained above by downloading the correct package for your system and architecture. Follow the instructions in the installation file to install on your architecture. More details are at Verify that phpinfo shows the "Zend Debugger".
  2. apt-get install eclipse
  3. In Eclipse, go to Help->Install New Software
  4. Type "Galileo" and choose the Galileo update site
  5. Expand "Web, XML, and Java EE development to get to "PHP Development Tools (PDT)" and install it.
  6. Now, add the Drupal PHP extensions (at least *.module, *.theme, *.test) to the PHP content type in Window->Preferences->General->Content Types.

Now set up a project in an Eclipse workspace:

(For examples in the below: I let Eclipse create the default ~/workspace, then I installed Drupal in ~/workspace/d7git, and made a virtualhost http://d7git.l that points to it.)

When you run Eclipse, it asks where you want the workspace. Just let it have its way and put it in ~/workspace.

Put the project you want to debug in the workspace (I created a Drupal install in ~/workspace/d7git)

Create a new project with File->New Project->PHP Project and give it the name of the directory of your project in ~/workspace. (I created the project "d7git", which absorbed my existing code.)

Debug Button -> Debug Configurations, Create a new "PHP Web Page" configuration.

  1. Give it a name (I called it d7git)
  2. For Server Debugger, choose Zend
  3. If you use virtualhosts like I do, you need to create a new PHP server at this point. Click new, and give it the URL. For example, I created a new PHP server called d7git and used the URL http://d7git.l and pressed "Finish".
  4. For the file, choose index.php
  5. Uncheck "Auto Generate" for the URL and change the URL to http:/// (I changed it to http://d7git.l)
  6. Click "Debug" and if you have succeeded, it will stop on the first line of index.php.

Pointers to key pages on debugging with Eclipse

Drupal theme by Kiwi Themes.