简体   繁体   中英

Install XDEBUG in Catalina OSX

I found this page

https://bbqsoftwares.com/blog/xdebug-catalina

that help to install Xdebug in Macosx Catalina, after Apple has changed Xcode installation, the headers of php are in another location. But I cannot save phpize file due to readonly permissions and so I cannot change the headers file location.
And so I cannot make the Xdebug.so.
Any help?

这是解决方案:[Mac Catalina 和 Xcode 11 的解决方案][1] https://profilingviewer.com/installing-xdebug-on-catalina.html#build

As per my new finding, you should be able to get it running by using this portion of the guide :

Move the executable somewhere safe. I use /usr/local/php/extensions .

sudo mkdir -p /usr/local/php/extensions
sudo cp $(php-config --extension-dir)/xdebug.so /usr/local/php/extensions

Then we edit the PHP configuration to enable Xdebug. Simply edit php.ini :

sudo nano /etc/php.ini

And we add the following at the bottom :

[xdebug]
zend_extension=/usr/local/php/extensions/xdebug.so
xdebug.remote_enable=on
xdebug.remote_log="/var/log/xdebug.log"
xdebug.remote_host=localhost
xdebug.remote_handler=dbgp
xdebug.remote_port=9000

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM