diff --git a/bin/xdebug b/bin/xdebug index e5bf67f..0957d14 100755 --- a/bin/xdebug +++ b/bin/xdebug @@ -1,5 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash -#XDEBUG_REMOTE_HOST=`echo $SSH_CLIENT | cut -d " " -f 1` +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 "$@" +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 "$@"