Skip to content

Instantly share code, notes, and snippets.

@sagalbot
Forked from hacfi/disable-xdebug.sh
Created August 4, 2017 19:35
Show Gist options
  • Save sagalbot/8edb507b04ad8a73c70f968cee01470f to your computer and use it in GitHub Desktop.
Save sagalbot/8edb507b04ad8a73c70f968cee01470f 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"
@sagalbot
Copy link
Author

sagalbot commented Aug 4, 2017

Modified for php71.

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