dotfiles/bin/dcdebug
Jacob Kiers 2755650734 More tools and improvements
Signed-off-by: Jacob Kiers <kiers@comandi.nl>
2017-12-08 18:36:39 +01:00

16 lines
373 B
Bash
Executable File

#!/usr/bin/env bash
COMMAND=$1;
shift 1
if [ ! -f $COMMAND ]; then
COMMAND=`which ${COMMAND}`
fi
if [ ! -f "${COMMAND}" ]; then
echo "Usage: ${0} <command>"
exit 1;
fi
PHP_IDE_CONFIG="serverName=local" XDEBUG_CONFIG="remote_enable=1 remote_mode=req remote_port=9000 remote_host=127.0.0.1 remote_connect_back=0" php -d zend_extension=xdebug.so $COMMAND "$@"