分享

mac安装xdebug调试php

 精品唯居 2022-12-20 发布于北京
//下载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

 

 

 

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多