Skip to content

Instantly share code, notes, and snippets.

@jeffam
Created April 29, 2021 14:36
Show Gist options
  • Save jeffam/b17e380ee0f86fc28351054227a2ecb2 to your computer and use it in GitHub Desktop.
Save jeffam/b17e380ee0f86fc28351054227a2ecb2 to your computer and use it in GitHub Desktop.
function xdebug-status() {
if [ $# -eq 0 ]
then
if [[ "$XDEBUG_MODE" == "off" ]]
then
echo "Xdebug is off."
else
echo "Xdebug is on."
fi
else
if [[ "$1" == "on" ]]
then
echo "XDEBUG enabled."
unset XDEBUG_MODE
else
echo "XDEBUG disabled."
export XDEBUG_MODE=off
fi
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment