Skip to content

Instantly share code, notes, and snippets.

@modcab
Last active December 8, 2015 14:08
Show Gist options
  • Save modcab/94e953fca4ef0bafa200 to your computer and use it in GitHub Desktop.
Save modcab/94e953fca4ef0bafa200 to your computer and use it in GitHub Desktop.
Setup for XDebug remote debugging
; you should include this on xdebug.ini
; got it from http://www.sitepoint.com/install-xdebug-phpstorm-vagrant/
xdebug.remote_enable = on
xdebug.remote_connect_back = on
xdebug.idekey = "PHPSTORM"
xdebug.max_nesting_level = 10000
; only if you want xdebug to trigger ALWAYS
xdebug.remote_autostart = on
;these are commands if you want to debug your remote command line in phpstorm.
export PHP_IDE_CONFIG="serverName=name_of_your_server_in_phpstorm"
export XDEBUG_CONFIG="remote_host=the_ip_your_server_sees_you_with idekey=PHPSTORM"
; current values:
export XDEBUG_CONFIG="remote_host=192.168.33.1 idekey=PHPSTORM"
export PHP_IDE_CONFIG="serverName=192.168.33.10"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment