当前位置: 首页 > 后端技术 > PHP

Mac下安装PHPXdebug

时间:2023-03-30 00:02:52 PHP

Mac下安装PHP调试工具Xdebug安装步骤brewinstallphp70brewinstallphp70-xdebugphp-i|grepxdebug.ini找到xdebug.ini的配置文件我的是/usr/local/etc/php/7.0/conf.d/ext-xdebug.inivim/usr/local/etc/php/7.0/conf.d/ext-xdebug.ini配置如下:[xdebug]zend_extension="/usr/local/opt/php70-xdebug/xdebug.so"xdebug.remote_enable=Onxdebug.remote_handler=dbgpxdebug.remote_host=localhostxdebug.remote_port=9001#这个端口不应该被占用,可以指定xdebug.idekey=PHPSTORMxdebug.remote_autostart=1xdebug.remote_log=/var/tmp/xdebug.log在PHPStorm中配置我的调试地址:http://localhost:8080/email/send.php?XDEBUG_SESSION_START=15550调试愉快,哈哈

最新推荐
猜你喜欢