Disabling xdebug when running composer

前端 未结 18 1383
北海茫月
北海茫月 2021-01-29 21:18

When running composer diagnose, I get the following error :

The xdebug extension is loaded, this can slow down Composer a little. Disablin

18条回答
  •  青春惊慌失措
    2021-01-29 21:39

    This command will disable the PHP5 Xdebug module for CLI (and thus composer) :

    sudo php5dismod -s cli xdebug
    

    It removes the xdebug.ini symlink from /etc/php5/cli/conf.d/

    This was suggested on http://blog.lorenzbausch.de/2015/02/10/php-disable-xdebug-for-cli/

    Note that for Ubuntu 16.04 you probably need to run it like this:

    sudo phpdismod -s cli xdebug
    

提交回复
热议问题