Skip to content

Instantly share code, notes, and snippets.

@alcaeus
Created May 28, 2015 09:07
Show Gist options
  • Save alcaeus/c4bd3a7aa9f1451ca827 to your computer and use it in GitHub Desktop.
Save alcaeus/c4bd3a7aa9f1451ca827 to your computer and use it in GitHub Desktop.
Remote debugging for CLI processes with PHPStorm
#!/bin/bash
# Configure these two values
ideServerName=server
xdebugPort=9000
# As long as you don't really know what you're doing, leave this alone.
export PHP_IDE_CONFIG=serverName=$ideServerName
php -dxdebug.remote_autostart=On -dxdebug.remote_enable=On -dxdebug.remote_port=$xdebugPort $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment