##Instructions:
- Edit xdebug_file variable with your xdebug.ini path
- Edit webserver_restart_cmd variable if necessary
- Edit python path if necessary (e.g. #!/usr/bin/env python3)
- Move the script into your bin folder (e.g. /usr/local/bin/)
- Make it executable (e.g.
sudo chmod +x /usr/local/bin/xdebug-toggle.py
)
##Usage:
sudo xdebug-toggle.py enable
sudo xdebug-toggle.py disable