I want to enable the XDebug module in PHP as run by Apache, but not for the CLI php
command. I'm on Mac and I have Apache (httpd) and PHP 7.3 installed with Homebrew.
PHP runs much slower with XDebug enabled, even when I'm not debugging a given php
command.
There are separate php.ini for CLI and Apache. In /etc/php/7.3/
there is an apache2
and cli
directory. For enabling Xdebug in 'apache2/php.ini' add these lines:
xdebug.remote_autostart=1
xdebug.remote_enable=1
And for Xdebug's profiler:
xdebug.profiler_enable=1
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.