Physical Address

304 North Cardinal St.
Dorchester Center, MA 02124

How to disable xdebug

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 https://getcomposer.org/xdebug

And takes too long time to process.

I already go to https://getcomposer.org/xdebug 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/xdebug.so"

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.

References

Leave a Reply

Your email address will not be published. Required fields are marked *