信息:
$ docker --version
):Docker版本18.06.0-ce,构建0ffa 825$ git rev-parse HEAD
):8180804ae问题:
无法让Xdebug工作。
预期行为:
应该停在断点
有关守则:
laradock/..env PHP_FPM_INSTALL_XDEBUG=true WORKSPACE_INSTALL_XDEBUG=true
php-fpm/xdebug.ini
含量
xdebug.remote_autostart=1
xdebug.remote_enable=1
xdebug.remote_connect_back=0
xdebug.cli_color=1
xdebug.profiler_enable=0
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_port=9000
xdebug.remote_host=172.16.3.97
xdebug.idekey=PHPSTORM
工作区/xdecg.ini的内容与php文件夹中的内容相同
发布于 2018-08-18 12:50:24
问题是,我的remote_host
IP不好,所以如果您在mac上,并且希望从容器连接到主机上的服务,那么:“Dockerv18.03以后,我们的建议是连接到特殊的host.docker.internal
名称,它解析到主机使用的内部IP地址。”
阅读更多这里
https://stackoverflow.com/questions/51910284
复制