Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@paulund
Created July 21, 2018 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulund/88c8ad7a5f1777daac67be5913da88fe to your computer and use it in GitHub Desktop.
Save paulund/88c8ad7a5f1777daac67be5913da88fe to your computer and use it in GitHub Desktop.
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