Skip to content

Instantly share code, notes, and snippets.

@markshust
Forked from hacfi/disable-xdebug.sh
Last active December 19, 2017 23:16
Show Gist options
  • Save markshust/1260a9e754b9ab2c843a0a579b8d3ef1 to your computer and use it in GitHub Desktop.
Save markshust/1260a9e754b9ab2c843a0a579b8d3ef1 to your computer and use it in GitHub Desktop.
OS X homebrew php 7.0 enable/disable xdebug extension script
#!/bin/sh
sed -i.default "s/^zend_extension=/;zend_extension=/" /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php71.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php71.plist
echo "xdebug disabled"
#!/bin/sh
sed -i.default "s/^;zend_extension=/zend_extension=/" /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php71.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php71.plist
echo "xdebug enabled"
@markshust
Copy link
Author

markshust commented Dec 19, 2017

curl -L https://gist.githubusercontent.com/markoshust/1260a9e754b9ab2c843a0a579b8d3ef1/raw/1af61f4354bdb86bc318536debb1d2d62703827d/disable-xdebug.sh -o /usr/local/bin/disable-xdebug
curl -L https://gist.githubusercontent.com/markoshust/1260a9e754b9ab2c843a0a579b8d3ef1/raw/1af61f4354bdb86bc318536debb1d2d62703827d/enable-xdebug.sh -o /usr/local/bin/enable-xdebug
chmod +x /usr/local/bin/*able-xdebug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment