Skip to content

Instantly share code, notes, and snippets.

@arielallon
Created July 21, 2014 17:53
Show Gist options
  • Select an option

  • Save arielallon/c72d4e94c92adf89d439 to your computer and use it in GitHub Desktop.

Select an option

Save arielallon/c72d4e94c92adf89d439 to your computer and use it in GitHub Desktop.
xdebug in phpstorm from vagrant cli
export PHP_IDE_CONFIG="serverName=local.project.com"
export XDEBUG_CONFIG="remote_host=192.168.56.1 idekey=PHPSTORM"
alias phpx='php -d "xdebug.profiler_enable=1" -d "xdebug.remote_host=192.168.56.1"'
# then run phpx -f filename.php
export PHP_IDE_CONFIG="serverName=local.project.com"
export XDEBUG_CONFIG="remote_host=192.168.56.1 idekey=PHPSTORM"
php -d "xdebug.profiler_enable=1" -d "xdebug.remote_host=192.168.56.1" -f filename.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment