Skip to content

Instantly share code, notes, and snippets.

@ajbonner
Created January 9, 2013 20:09
Show Gist options
  • Save ajbonner/4496372 to your computer and use it in GitHub Desktop.
Save ajbonner/4496372 to your computer and use it in GitHub Desktop.
A pair of bash functions to speed up enabling and disabling xdebug on debian like systems
function enable_xdebug() {
sudo sed -i'' 's/^;*//g' /etc/php5/conf.d/xdebug.ini
}
function disable_xdebug() {
sudo sed -i'' 's/^/;/g' /etc/php5/conf.d/xdebug.ini
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment