Created
April 29, 2021 14:36
-
-
Save jeffam/b17e380ee0f86fc28351054227a2ecb2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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