xdebug.ini Setup

Dec 25, 2017 22:42 · 64 words · 1 minute read PHP Ubuntu

Make sure xdebug is on the system:

find / -name 'xdebug.so' 2> /dev/null

If it’s missing then install it:

sudo apt-get install php5-dev php-pear
sudo pecl install xdebug

This snippet should be in /etc/php5/mods-available/xdebug.ini. Change the params as you need

;;;;;;;;;;;;;;;;;;;;;;;;;;'
; Added to enable Xdebug ;'
;;;;;;;;;;;;;;;;;;;;;;;;;;'

zend_extension=xdebug.so
xdebug.default_enable = 1
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_port = 9000
xdebug.remote_handler=dbgp
xdebug.remote_log="/var/log/xdebug/xdebug.log"
xdebug.remote_host=172.17.0.1