Skip to content

Instantly share code, notes, and snippets.

@zeloc
Created August 16, 2018 08:16
Show Gist options
  • Save zeloc/907b9616c1df6baf98f0d0ee492aaf39 to your computer and use it in GitHub Desktop.
Save zeloc/907b9616c1df6baf98f0d0ee492aaf39 to your computer and use it in GitHub Desktop.
unfinished
#!/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