Created
May 28, 2015 09:07
-
-
Save alcaeus/c4bd3a7aa9f1451ca827 to your computer and use it in GitHub Desktop.
Remote debugging for CLI processes with PHPStorm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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