Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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.0/conf.d/ext-xdebug.ini
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php70.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php70.plist
echo "xdebug disabled"
#!/bin/sh
sed -i.default "s/^;zend_extension=/zend_extension=/" /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php70.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php70.plist
echo "xdebug enabled"
@hacfi

This comment has been minimized.

Copy link
Owner Author

commented Feb 5, 2016

curl -L https://gist.github.com/hacfi/5a9e49fff3c9b67eb793/raw/fa8c0e9a763fe1fccff6301e8c641a4a68898dc0/disable-xdebug.sh -o /usr/local/bin/disable-xdebug
curl -L https://gist.github.com/hacfi/5a9e49fff3c9b67eb793/raw/fa8c0e9a763fe1fccff6301e8c641a4a68898dc0/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
You can’t perform that action at this time.