Xdebug和PhpStorm remote不工作

Xdebug和PhpStorm remote不工作,phpstorm,xdebug,Phpstorm,Xdebug,是否有可能检查web服务器是否正在向Chrome发送内容 我以同样的方式设置了PhpStorm和web服务器,我已经阅读了1000篇教程,但是我的PhpStorm没有从chrome收到任何东西 以下是一些设置: php.ini zend_extension="/usr/lib/php/20160303/xdebug.so" xdebug.coverage_enable=on xdebug.default_enable=on xdebug.profiler_enable=on xdebug.pro

是否有可能检查web服务器是否正在向Chrome发送内容

我以同样的方式设置了PhpStorm和web服务器,我已经阅读了1000篇教程,但是我的PhpStorm没有从chrome收到任何东西

以下是一些设置:

php.ini

zend_extension="/usr/lib/php/20160303/xdebug.so"
xdebug.coverage_enable=on
xdebug.default_enable=on
xdebug.profiler_enable=on
xdebug.profiler_output_dir="/tmp"
xdebug.remote_autostart=on
xdebug.remote_port=9001
xdebug.remote_enable = on
xdebug.remote_connect_back = on
xdebug.idekey=PHPSTORM
xdebug.remote_handler=dbgp
我已禁用服务器上的防火墙。PhpStorm正在侦听端口9001


一些想法?

解决方案非常简单!我唯一忘记的是从本地机器到远程服务器的ssh隧道

下面是一个运行配置的示例:

[xdebug]
zend_extension="/usr/lib/php/20160303/xdebug.so"
xdebug.remote_autostart=on
xdebug.remote_host=localhost
xdebug.remote_port=9001
xdebug.remote_enable = on
xdebug.idekey=PHPSTORM
将XDebug助手用作chrome插件

最后一步,创建到远程服务器的ssh隧道:

ssh -R 9001:localhost:9001 user@dev.server.com -N

如何在浏览器中附加Xdebug cookie?您使用Xdebug帮助程序还是书签?我正在使用Xdebug帮助程序。我也尝试使用书签。我无法理解浏览器是否正在发送内容。如果启用Xdebug helper,则它应在刷新时自动附加它。浏览器不发送任何东西-这是Xdebug和PhpStorm之间的连接。另外,您真的需要php.ini中的所有这些选项,比如远程_处理程序吗?要正常工作,只需要zend_扩展、xdebug.remote_启用、xdebug.remote_主机和xdebug.remote_端口:。请注意,Apache可能使用不同的php.ini文件。