I don't remember how xdebug was enabled, but I found that in the /etc/php/7.0/mods-available directory xdebug is listed as xdebug.ini.
If I go to the directory /etc/php/7.0/apache2/conf.d there is a symlink there to the xdebug.ini file, and that symlink is named 20-xdebug.ini.
The contents of xdebug.ini is:
zend_extension=xdebug.so
xdebug is working, but because I am annoyed by it most of the time, I thought I could just turn it off:
sudo a2dismod xdebug
But that command barks at me, "ERROR: Module xdebug does not exist!". I would like it to be convenient to turn xdebug off and on whenever I want, so my questions are:
- Since xdebug is on, why can't I use a2dismod to disable it?
- Am I just doing this wrong, and should be doing it some other way?
- Is the right thing to do to make an bash alias that does everything I need?
I know I could just go in and comment out the line, then restart apache, but I need the lazy man's solution, if there is one.