dotfiles/bin/xdebug
Jacob Kiers 79074be926 Improve bin/xdebug to use command from path.
It uses the `which` command to find the command that you actually want
to run, and runs that.

This makes it possible to run any php binary (like phpunit or phing)
with xdebug.

Signed-off-by: Jacob Kiers <jacob@alphacomm.nl>
2015-01-27 12:25:03 +01:00

7 lines
202 B
Bash
Executable File

#!/usr/bin/env bash
COMMAND=`which $1`;
shift 1
PHP_IDE_CONFIG="serverName=sandbox" XDEBUG_CONFIG="idekey=PHPSTORM remote_host=127.0.0.1 remote_port=19000" php -d xdebug.remote_enable=1 $COMMAND "$@"