Skip to content

Instantly share code, notes, and snippets.

@ASKozienko
Created February 24, 2014 09:09
Show Gist options
  • Save ASKozienko/9184268 to your computer and use it in GitHub Desktop.
Save ASKozienko/9184268 to your computer and use it in GitHub Desktop.
xdebug() {
if [ "$1" = "-e" ]; then
export XDEBUG_CONFIG="idekey=PHPSTORM"
echo "xdebug enabled"
return
fi
if [ "$1" = "-d" ]; then
unset XDEBUG_CONFIG
echo "xdebug disabled"
return
fi
STATUS="disabled"
if [ -n "$XDEBUG_CONFIG" ]; then
STATUS="enabled"
fi
cat << EOF
status: $STATUS
usage: xdebug [options]
OPTIONS:
-e Enable xdebug
-d Disable xdebug
EOF
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment