问题描述
是否可以检查网络服务器是否正在向Chrome发送邮件?
Is there a possibility to check if the web server is sending something to Chrome?
我已经以相同的方式设置了PhpStorm和Web服务器,已经阅读了1000篇教程,但是我的PhpStorm没有从chrome接收任何信息.
I have setting up PhpStorm and the web server in the same way, I have read in 1000 tutorials, but my PhpStorm doesn't receive anything from 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端口.
I have disabled the firewall on the server. PhpStorm is listening on the port 9001.
一些想法?
推荐答案
解决方案非常简单!我唯一忘记的是从本地计算机到远程服务器的ssh隧道.
The solution is very easy! The only thing I forgot was the ssh tunnel to my remote server from my local machine.
这里是运行config的示例:
Here an example running config:
[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 Helper的Chrome插件 https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc
Use as chrome plugin the XDebug Helperhttps://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc
最后一步,创建到远程服务器的ssh隧道:
And as last step create an ssh tunnel to the remote server:
ssh -R 9001:localhost:9001 [email protected] -N
这篇关于Xdebug和PhpStorm远程无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!