Sper sa fie cu folos …

Install PHP5 Xdebug for use with Eclipse PDT on Ubuntu 8.10

May 27th, 2009 Posted in Linux, Programare

If you use Eclipse PDT and you want to debug your PHP code using Xdebug just do this:

1. Install xdebug

apt-get install php5-xdebug

2. Append to /etc/php5/conf.d/xdebug.ini

xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1  ; if debugging on remote server, put client IP here
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0

3. Restast Apache

/etc/init.d/apache2 restart

4.  Check to see if xdebug is working with phpinfo(). Create a php file and access it

;

That’s it!

Post a Comment