How to disable xdebug

Last updated at April 17, 2021


When I run composer update command in shell, composer displays warning like bellow.

You are running composer with xdebug enabled. This has a major impact on runtime performance. See

And takes too long time to process.

I already go to reference and tried to disable xdebug option in php.ini file. But I couldn't found it.

This is the real reference to disable xdebug option in php.ini file.

Get what php.ini file is used

First, check what kind of php.ini file is used.

php -i | grep "php.ini"

Comment xdebug option

Search zend_extension option and comment it using ';(semicolon)'.

;zend_extension = "/path/to/my/"

If you can't find this option in php.ini file, maybe it is in conf.d folder. File name is like '20-xdebug.ini'. Open this file and comment it.