Currently browsing phpide


Zend Executable Debugger Eclipse Plugin

Fri, 5 Jan 2007 18:01 UTC

UPDATE (5 Jan, 21:00): Patrick Mueller has just posted some links to information about XDebug support for PDT. Now, for those not wishing to use the Zend Debugger, you may now use XDebug.

Since I last wrote about the Eclipse PHP IDE a few weeks ago, the Eclipse team has changed the name of the project to the PHP Development Tool, or PDT. So, if you’ve been looking for the PHP IDE, you can find it in the same place, but the name has changed. The name change isn’t what I wanted to write about, though. Rather, I wanted to take a moment to talk about the free Zend Executable Debugger plug-in for Eclipse.

The Zend Executable Debugger plug-in is part of the all-in-one PDT package, but if you want to install it on your own—since it’s possible to use this debugger without the PDT and with PHPEclipse, for example—then you’ll need to install it using the Eclipse Update Manager (the easier way).

To install the Zend Executable Debugger plug-in using the Update Manager, follow the instructions I provided earlier to set up a new update site using the following information:

  • PHP Development Tool (PDT)
    UPDATE URL: http://downloads.zend.com/pdt

    Please note that the Zend Executable Debugger is not available from the Eclipse site’s PHP update URL listed in my earlier post. Instead, you must use the Zend update URL (listed here) to install the debugger. When installing, if you already have the PDT installed, simply choose to install only the Zend Debugger.

    Install the Zend Debugger

    Once installed, you can debug a PHP script by selecting the script and choosing Run > Debug As > PHP Script, and that’s all there is to it. The debugging output appears in the console tab, shown here:

    PDT-DebugConsole

    Comments 21 Comments »  Permalink Permalink  Tags Tags: , , , , , , ,


Installing the Eclipse PHP IDE

Mon, 18 Dec 2006 17:51 UTC

I recently wanted to try out the Eclipse PHP IDE, the official Eclipse project that is endorsed/backed by Zend (I’m not entirely sure about the nature of their relationship, to be honest). I already had a working Eclipse installation that I had used to try out PHPeclipse for Eclipse (not to be confused with the PHP IDE), so I didn’t want to bother downloading a brand new full package of Eclipse that includes the PHP IDE and all its requirements. So, I set about on a tedious journey to figure out how to install PHP IDE using the Eclipse Update Manager. These are my notes.

NOTE: If you don’t already have a working copy of Eclipse and you want to try out the PHP IDE, then these notes are not for you. Simply download the full package and install it. Everything should work fine out of the box. These notes are for those who have a working installation of Eclipse, want to install PHP IDE via the Update Manager, and are having trouble finding all the download sites for the PHP IDE prerequisites.

Disable PHPeclipse (if needed)

First off, if you have PHPeclipse installed, you’ll need to disable it. Navigate to Help > Software Updates > Manage Configuration. From the tree on the left, find PHPEclipse, highlight it, and choose the “Disable” link from the pane on the right.

Disabling PHPeclipse

Install the PHP IDE Prerequisites

Setting Up a New Update Site

The PHP IDE installation page lists a handful of runtime prerequisites for the PHP IDE plugin. However, it doesn’t list any URLs directing you to where the projects are located or what Update Manager URLs to use. Thus, I’m providing those links here.

For each of these prerequisites, you must follow these steps to install the package via the Eclipse Update Manager:

  1. Open the Update Manager at Help > Software Updates > Find and Install…
  2. Select “Search for new features to install” and click the Next button
  3. Click the New Remote Site… button on the right
  4. Enter a name and the update URL for the update site, click OK
  5. Make sure the checkbox next to the new site is checked and click Finish
  1. Follow the prompts to install the new package

    Now that you know how to install the packages, here are the prerequisites and their update URLs:

  • Web Tools Platform (WTP)
    UPDATE URL: http://download.eclipse.org/webtools/updates/

    Install the PHP IDE Plugin

    Now that you have installed all the prerequisites, you are ready to install the PHP IDE plugin, and you shouldn’t encounter any problems now since all the prerequisites are available. To install the PHP IDE plugin, follow the same directions above to set up the PHP IDE update site in the Update Manager using the following update URL:

  • PHP IDE
    UPDATE URL: http://download.eclipse.org/tools/php/updates/

Comments 31 Comments »  Permalink Permalink  Tags Tags: , , , , , ,