phpstorm配置docker+xdebug

xdebug.ini配置

zend_extension=xdebug.so
xdebug.mode=debug
xdebug.idekey="PHPSTORM"
xdebug.XDEBUG_SESSION="PHPSTORM"
xdebug.start_with_request = yes
xdebug.remote_enable=1
xdebug.profiler_enable=1
xdebug.profiler_enable_trigger=1
; 宿主机的ip
;xdebug.client_host=docker.for.mac.localhost
xdebug.client_host=192.168.0.1
xdebug.client_port=9003
xdebug.remote_handler="dbgp"
xdebug.var_display_max_children=128
xdebug.var_display_max_data=512
xdebug.var_display_max_depth=20

phpstorm配置docker
在这里插入图片描述
phpstorm配置server
在这里插入图片描述

不加--env PHP_IDE_CONFIG=serverName=localhost debug时会报:Cannot find file '/var/www/bin/start.php' locally.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值