xdebug phpstorm docker linux
我无法捕获xdebug对我的应用程序的任何请求 xdebug.inixdebug phpstorm docker linux,linux,docker,phpstorm,xdebug,Linux,Docker,Phpstorm,Xdebug,我无法捕获xdebug对我的应用程序的任何请求 xdebug.ini zend_extension=xdebug.so xdebug.remote_autostart = 1 xdebug.idekey=PHPSTORM xdebug.remote_connect_back=1 xdebug.remote_enable=On 我看到你把这个贴上了“docker”的标签。如果使用docker,则不能使用xdebug.remote\u connect\u back=1。您需要指定运行IDE
zend_extension=xdebug.so
xdebug.remote_autostart = 1
xdebug.idekey=PHPSTORM
xdebug.remote_connect_back=1
xdebug.remote_enable=On
我看到你把这个贴上了“docker”的标签。如果使用docker,则不能使用xdebug.remote\u connect\u back=1。您需要指定运行IDE的docker可以访问的机器的
xdebug.remote\u host=IP地址。在较新版本中,这可以是host.docker.internal
为了进一步调试网络问题,请在php.ini
设置中设置xdebug.remote_log=/tmp/xdebug.log
,并查看在启动调试会话(通过浏览器扩展)时会显示什么。我看到您已将其标记为“docker”。如果使用docker,则不能使用xdebug.remote\u connect\u back=1
。您需要指定运行IDE的docker可以访问的机器的xdebug.remote\u host=IP地址。在较新版本中,这可以是host.docker.internal
为了进一步调试网络问题,请在php.ini
设置中设置xdebug.remote_log=/tmp/xdebug.log
,并查看启动调试会话(通过浏览器扩展)时会显示什么。由sudo iptables-a INPUT-p tcp--dport 9000-j ACCEPT修复
使用以下xdebug.ini配置
xdebug.remote_autostart = 1
xdebug.idekey=PHPSTORM
xdebug.remote_connect_back=0
#172.17.0.1 is docker0 interface ip address (see ifconfig)
xdebug.remote_host=172.17.0.1
xdebug.remote_enable=On
xdebug.remote_port=9000
由sudo iptables-A输入-p tcp--dport 9000-j接受修复
使用以下xdebug.ini配置
xdebug.remote_autostart = 1
xdebug.idekey=PHPSTORM
xdebug.remote_connect_back=0
#172.17.0.1 is docker0 interface ip address (see ifconfig)
xdebug.remote_host=172.17.0.1
xdebug.remote_enable=On
xdebug.remote_port=9000
启用xdebug日志记录并检查xdebug是否使用正确的地址和端口连接到IDE:启用xdebug日志记录并检查xdebug是否使用正确的地址和端口连接到IDE:正如您所说,我指定了远程主机,但执行仍然没有在制动点停止。我向xdebug添加了日志记录。以下是输出:[32365]日志在2020-02-18 13:49:03打开[32365]I:连接到配置的地址/端口:0.0.0.0:9000。[32365]I:已连接到客户端。:-)xmlns:xdebug=”https://xdebug.org/dbgp/xdebug“status=”stopping“reason=”ok“>
因此,我立即获得了停止状态,没有任何中断/启动/运行/停止,您的问题是IDE。我通过sudo iptables-A INPUT-p tcp--dport 9000-j ACCEPT
修复了它。现在它可以工作了。正如您所说,我指定了远程主机,但执行仍然没有在制动点停止。我向xdebug添加了日志记录。以下是输出:[32365]日志在2020-02-18 13:49:03打开[32365]I:连接到配置的地址/端口:0.0.0.0:9000。[32365]I:已连接到客户端。:-)xmlns:xdebug=”https://xdebug.org/dbgp/xdebug“status=”stopping“reason=”ok“>
因此,我立即获得了停止状态,没有任何中断/启动/运行/停止,您的问题是IDE。我通过sudo iptables-A INPUT-p tcp--dport 9000-j ACCEPT解决了它现在可以工作了