phpxdebugapc

How to disable XDebug


I think that my server became slow since I installed XDebug. So, in order to test my hypothesis I want to disable XDebug completely. I've been searching for tutorials on how to do this but I can't find such information.


Solution

  • Find your php.ini and look for XDebug.

    Set xdebug autostart to false

    xdebug.remote_autostart=0  
    xdebug.remote_enable=0
    

    Disable your profiler

    xdebug.profiler_enable=0
    

    Note that there can be a performance loss even with xdebug disabled but loaded. To disable loading of the extension itself, you need to comment it in your php.ini. Find an entry looking like this:

    zend_extension = "/path/to/php_xdebug.dll"
    

    and put a ; to comment it, e.g. ;zend_extension = ….

    Check out this post XDebug, how to disable remote debugging for single .php file?

    HINT: This answer is for xdebug 2. Make sure to check for xdebug 3 answers