jchlu
3/3/2018 - 6:40 PM

XDebug config

XDebug setup instructions and notes

Items in xdebug.ini:

xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=192.168.20.1
;xdebug.remote_host=10.0.2.2
;xdebug.remote_connect_back=on
xdebug.remote_port=9000
xdebug.remote_mode=req
;This next line might not agree with Windows hosts, uncomment for OSX / PHPStorm
xdebug.remote_autostart=On
;Uncomment your favourite below
xdebug.idekey=phpstorm-xdebug
;xdebug.idekey=netbeans-xdebug
xdebug.remote_log=/tmp/php5-xdebug.log
;xdebug.extended_info = 1

example items in ~/.zshrc or ~/.bashrc etc

export XDEBUG_CONFIG="idekey=phpstorm-xdebug" 
export PHP_IDE_CONFIG="serverName=Vagrant56"
export APPLICATION_ENV="development"