Skip to content

Instantly share code, notes, and snippets.

@roni-estein
Forked from Nikschavan/disable-xdebug.sh
Created December 17, 2018 20:17
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 roni-estein/6135f0c977e48ddebeb004d42228fdb8 to your computer and use it in GitHub Desktop.
Save roni-estein/6135f0c977e48ddebeb004d42228fdb8 to your computer and use it in GitHub Desktop.
OS X Homebrew php 7.1 enable/disable Xdebug extension script - https://www.nikhilchavan.com/2017/04/enable-disable-xdebug-quickly-os-x-homebrew-php-7-1/
#!/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
sudo brew services restart php71
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
sudo brew services restart php71
echo "xdebug enabled"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment