Skip to content

Instantly share code, notes, and snippets.

@hacfi
Created February 5, 2016 00:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hacfi/e1484bdc7586a63accf0 to your computer and use it in GitHub Desktop.
Save hacfi/e1484bdc7586a63accf0 to your computer and use it in GitHub Desktop.
OS X homebrew php 5.6 enable/disable xdebug extension script
#!/bin/sh
sed -i.default "s/^zend_extension=/;zend_extension=/" /usr/local/etc/php/5.6/conf.d/ext-xdebug.ini
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php56.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php56.plist
echo "xdebug disabled"
#!/bin/sh
sed -i.default "s/^;zend_extension=/zend_extension=/" /usr/local/etc/php/5.6/conf.d/ext-xdebug.ini
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php56.plist
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php56.plist
echo "xdebug enabled"
@hacfi
Copy link
Author

hacfi commented Feb 5, 2016

curl -L https://gist.github.com/hacfi/e1484bdc7586a63accf0/raw/c316107a0f81205cb7d11087ec2f83bf53bc721f/disable-xdebug.sh -o /usr/local/bin/disable-xdebug
curl -L https://gist.github.com/hacfi/e1484bdc7586a63accf0/raw/c316107a0f81205cb7d11087ec2f83bf53bc721f/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