Skip to content

Instantly share code, notes, and snippets.

@alvinnguyen
Last active November 29, 2017 08:33
Show Gist options
  • Save alvinnguyen/1caec014050937b7136aaa4aff2551ef to your computer and use it in GitHub Desktop.
Save alvinnguyen/1caec014050937b7136aaa4aff2551ef to your computer and use it in GitHub Desktop.
xdebug for PHP command line
#!/bin/bash
export XDEBUG_CONFIG="idekey=PHPSTORM" &&
export PHP_IDE_CONFIG="serverName=Unnamed" &&
php "$@"
Also put this into
/etc/php/5.6/fpm/conf.d/20-xdebug.ini
xdebug.remote_host=192.168.56.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment