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.