Tim Richardson

Melbourne, Australia

  • Increase font size
  • Default font size
  • Decrease font size

xdebug and PHP with eclipse on Debian

E-mail Print PDF

Tip: xdebug is packaged for debian and sets up a configuration file for apache in /etc/php5/apache2/conf.d

The file is xdebug.ini. After installation it has the zend_extension parameter set. To use with eclipse and the PDT modules, add these lines:

xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"

install PDT via the existing repository in eclipse. It's under web development.

To get started: the series of articles here was written for an earlier version of eclipse, but it's easy to adapt.

I have 3.5SR2 (installed from eclipse.org, not using the Debian package) and I got it working within a few minutes of starting. Being able to step through a PHP page connecting to a database makes PHP seem a lot easier to learn. I had to configure iceweasel as the external browser in Eclipse.

 

 

 

Tags:

Add this to your website
 

Get site updates with Twitter