Skip to content

Instantly share code, notes, and snippets.

@rolfvreijdenberger
Created May 9, 2014 08:27
Show Gist options
  • Save rolfvreijdenberger/78fe1b3d6d9420eccf3f to your computer and use it in GitHub Desktop.
Save rolfvreijdenberger/78fe1b3d6d9420eccf3f to your computer and use it in GitHub Desktop.
xdebug.ini (php) and some configuration specs for activating xdebug
;file: /etc/php5/mods-available/xdebug.ini
;cd /etc/php5/conf.d/ && ln -s ../mods-available/xdebug.ini xdebug.ini
zend_extension=/usr/lib/php5/20121212/xdebug.so
;the next lines were added, so they are enabled for each php environment
;like cli and apache2 and we don't have to add that to their specific env settings
;in /etc/php5/<apache2|cli>/php.ini
;this file is /etc/php5/mods-available/xdebug.ini and it is actived
;by the symlink in /etc/php5/conf.d
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_autostart=1
xdebug.remote_log="/var/log/xdebug"
xdebug.remote_mode=req
; choose the correct key
;xdebug.idekey="ECLIPSE_DBGP"
xdebug.idekey="netbeans-xdebug"
xdebug.auto_trace=1
xdebug.cli_color=1
;debug.var_display_max_children=3;
;debug.var_display_max_data=;
xdebug.var_display_max_depth=7;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment