Created
August 16, 2018 08:16
-
-
Save zeloc/907b9616c1df6baf98f0d0ee492aaf39 to your computer and use it in GitHub Desktop.
unfinished
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 | |
# Simple script to enable or disable xdebug profiling | |
case $1 in | |
on) | |
sudo sed -i 's/;//g' /etc/php.d/xdebug.ini | |
sudo /etc/init.d/php-fpm restart | |
;; | |
off) | |
sudo sed -i 's/^/;/g' /etc/php.d/xdebug.ini | |
sudo /etc/init.d/php-fpm restart | |
;; | |
*) | |
echo "Usage: php_debug on|off" | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment