Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Alias to enable/disable xdebug
alias exd="sh enabled-xdebug.sh"
alias dxd="sh disable-xdebug.sh"
#!/bin/sh
mv /usr/local/opt/php71-xdebug/xdebug.so /usr/local/opt/php71-xdebug/xdebug.so.disabled
brew services restart php71
echo "xdebug is now disabled"
#!/bin/sh
mv /usr/local/opt/php71-xdebug/xdebug.so.disabled /usr/local/opt/php71-xdebug/xdebug.so
brew services restart php71
echo "xdebug is now enabled"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment