Simple bash script to toggle xdebug on/off in OSX
--no-server-restart
has been added. As the name of the option suggest, when used Apache or PHP-FPM won't be restarted. (#8 - thanks @exequiel09)
xdebug-toggle on
: Xdebug gets enabled and Apache / PHP-FPM gets restarted (default behavior)xdebug-toggle on --no-server-restart
: Xdebug gets enabled and Apache / PHP-FPM is not restartedxdebug
has been renamed to xdebug-toggle
. xdebug
is kept as a symbolic link but will be eventually removed so it is advised not to rely on it and switch to use xdebug-toggle
.brew --prefix
to determine proper location of config files (#2 - thanks @webflo)