Install PHP5 Xdebug for use with Eclipse PDT on Ubuntu 8.10
May 27th, 2009 Posted in Linux, ProgramareIf you use Eclipse PDT and you want to debug your PHP code using Xdebug just do this:
1. Install xdebug
1 | apt-get install php5-xdebug |
2. Append to /etc/php5/conf.d/xdebug.ini
1 2 3 4 5 | 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
1 | /etc/init.d/apache2 restart |
4. Check to see if xdebug is working with phpinfo(). Create a php file and access it
1 | <php phpinfo(); ?>; |
That’s it!