brew install php70
brew install php70-xdebug
php -i | grep xdebug.ini找到xdebug.ini的配置文件我的是/usr/local/etc/php/7.0/conf.d/ext-xdebug.ini
vim /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini
配置如下: [xdebug] zend_extension="/usr/local/opt/php70-xdebug/xdebug.so" xdebug.remote_enable = On xdebug.remote_handler = dbgp xdebug.remote_host= localhost xdebug.remote_port = 9001 #这个端口不要被占用即可,可以自行指定 xdebug.idekey = PHPSTORM xdebug.remote_autostart=1 xdebug.remote_log=/var/tmp/xdebug.log
在PHPStorm中配置
立即学习“PHP免费学习笔记(深入)”;
我的调试地址:http://localhost:8080/email/send.php?XDEBUG_SESSION_START=15550
愉快的调试吧,哈哈
brew install php70
brew install php70-xdebug
php -i | grep xdebug.ini找到xdebug.ini的配置文件我的是/usr/local/etc/php/7.0/conf.d/ext-xdebug.ini
vim /usr/local/etc/php/7.0/conf.d/ext-xdebug.ini
配置如下: [xdebug] zend_extension="/usr/local/opt/php70-xdebug/xdebug.so" xdebug.remote_enable = On xdebug.remote_handler = dbgp xdebug.remote_host= localhost xdebug.remote_port = 9001 #这个端口不要被占用即可,可以自行指定 xdebug.idekey = PHPSTORM xdebug.remote_autostart=1 xdebug.remote_log=/var/tmp/xdebug.log
在PHPStorm中配置
立即学习“PHP免费学习笔记(深入)”;
我的调试地址:http://localhost:8080/email/send.php?XDEBUG_SESSION_START=15550
愉快的调试吧,哈哈
以上就是Mac下安装PHP Xdebug的详细内容,更多请关注php中文网其它相关文章!
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号