连续复制
一键复制
一键打包

xdebug 配置

php.ini

xdebug 2.0配置
[xdebug]
xdebug.remote_enable=On
xdebug.remote_autostart=Off
xdebug.remote_handler=dbgp
xdebug.remote_host=192.168.1.105 (开发环境地址)
xdebug.remote_port=10010 (开发环境端口)
xdebug.idekey=PHPSTORM
xdebug 3.0配置
[xdebug]
# xdebug.remote_enable=On
xdebug.start_with_request=yes
xdebug.discover_client_host=true
xdebug.remote_cookie_expire_time = 3600
xdebug.remote_autostart=Off
xdebug.remote_handler=dbgp
xdebug.client_host=192.168.101.4
xdebug.client_port=10010
xdebug.idekey=PHPSTORM
xdebug.mode = debug

配置完一定要重启fpm

phpstorm 配置

Break at first line in PHP Scripts Off 禁用 不然调试一直弹出
Languages Frameworks -> php -> debug -> xdebug prot 10010
Languages Frameworks -> php -> debug -> xdebug -> DBGp Proxy
# DBGp Proxy
key:PHPSTORM
host:ti001.lan.baidu120.cc
port:10010

Languages Frameworks -> php -> debug -> xdebug -> servers

# xdebug -> servers
name:ti001.lan.baidu120.cc 访问域名
host:ti001.lan.baidu120.cc 访问域名
port:80 域名端口号
use maping path D:\docker.dev\www\dev.ti001.com /www/wwwroot/dev.ti001.com

Edit configurations -> php remote debug

# Edit configurations -> php remote debug
name:ti001.lan.baidu120.cc
On filter debug connection by ide key
server:ti001.lan.baidu120.cc
IDE key: PHPSTORM

postman 配置

Cookie:XDEBUG_SESSION=PHPSTORM;