Skip to content

Instantly share code, notes, and snippets.

@SergSlon
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save SergSlon/35fcaf134e913ab32d43 to your computer and use it in GitHub Desktop.

Select an option

Save SergSlon/35fcaf134e913ab32d43 to your computer and use it in GitHub Desktop.
phpstorm debug with cli scripts
#!/bin/bash
export PHP_IDE_CONFIG="serverName=site.com"
php \
-d xdebug.remote_autostart=1 \
-d xdebug.remote_enable=1 \
-d xdebug.idekey=PHPSTORM \
-d xdebug.remote_host=123.45.6.78 \
"$@"
# path/to/phpd script.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment