Skip to content

Configure eclipse with xdebug

Flavius Aspra edited this page Feb 15, 2012 · 1 revision

Status: IN WORK

In this tutorial I've used Arch Linux OS, but the configuration instructions of the programs should be the same on Windows OS.

WARNING

If You Are Using Windows Vista/7:

  • Do not pair 32bit Eclipse and 64bit JRE/JDK or vice versa. Use 32bit Eclipse on 32bit JRE/JDK, or 64bit Eclipse on 64bit JRE/JDK.
  • Do not install Eclipse under 'Program Files' or 'Program Files(x86)' folder.

Using Linux distro:

  • Make sure SWT requirements if you have troubles with Content Assist or Internal Web Browser.
    • CSS styles appear in Content Assist Information.
    • Internal Web Browser is unavailable (cannot be opened or such).

In order to configure Eclipse with Xdebug you need to fallow this steps:

  1. Install Eclipse on Arch Linux.

  2. Install only PDT, as described here.

  3. Install Xdebug.

    • On Arch Linux, #pacman -S xdebug to install the program.
    • After xdebug installs make sure that you have in /etc/php/conf.d/xdebug.ini the fallowing settings:

    zend_extension=/usr/lib/php/modules/xdebug.so
    xdebug.remote_enable=on
    xdebug.remote_host=localhost
    xdebug.remote_port=9000
    xdebug.remote_handler=dbgp

  4. Install firefox add-on easy Xdebug.

  5. Run Eclipse.

  6. Configure Eclipse like here.

Clone this wiki locally