打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
mac安装xdebug调试php
//下载xdebug拓展包
https://pecl.php.net/get/xdebug-2.7.2.tgz
//解压 编译 安装 phpize和php-config用自己实际的
tar -zxvf xdebug-2.7.2.tgz
cd xdebug-2.7.2
phpize
./configure     --with-php-config=php-config --enable-xdebug 
make && make install
//php.ini增加配置 重启坏境 查看phpinfo
[xdebug]
zend_extension="/Applications/MAMP/bin/php/php7.3.1/lib/php/extensions/no-debug-non-zts-20180731/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_autostart = 1
xdebug.idekey = PHPSTORM
xdebug.remote_host=localhost
xdebug.remote_handler = dbgp
;默认的9000已经被php-fpm占用了,换一个端口9001
xdebug.remote_port=9001
xdebug.remote_connect_back = 1
xdebug.scream = 0
xdebug.show_local_vars = 1

配置phpstorm

 

 

 

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
Xdebug
phpstorm配置Xdebug进行调试PHP教程
安装 xdebug
zend studio配置调试(Xdebug方式)
NotePad++ 使用 DBGp 调试php
PHPStorm+XDebug进行调试图文教程
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服