Skip to content

Instantly share code, notes, and snippets.

@tannerhodges
Forked from hacfi/disable-xdebug.sh
Created June 13, 2017 13:24
Show Gist options
  • Save tannerhodges/c5ef47169e1de160f0ffcd8d1c832502 to your computer and use it in GitHub Desktop.
Save tannerhodges/c5ef47169e1de160f0ffcd8d1c832502 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.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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment