Last active
January 6, 2016 09:26
-
-
Save reyostallenberg/c7234095ce95782401f7 to your computer and use it in GitHub Desktop.
Toggle PHP XDebug extension on CLI
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
#!/bin/bash | |
if [ -f /etc/php5/cli/conf.d/20-xdebug.ini ] | |
then | |
sudo rm /etc/php5/cli/conf.d/20-xdebug.ini | |
echo "Disabled XDebug on CLI" | |
else | |
sudo su -c 'echo "zend_extension=xdebug.so" > /etc/php5/cli/conf.d/20-xdebug.ini' | |
echo "Enabled XDebug on CLI" | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment