问题描述
我似乎无法让Atom和Xdebug正常工作... 我在Web服务器上安装了Xdebug,phpinfo显示它已启用,并将xdebug.ini更改为
zend_extension=xdebug.so
xdebug.show_error_trace = 1
debug.remote_enable=1
xdebug.remote_port=9001
xdebug.remote_host=127.0.0.1
xdebug.remote_autostart=1
xdebug.remote_connect_back=0
xdebug.remote_handler="dbgp"
xdebug.remote_mode=req
xdebug.remote_cookie_expire_time=-9999
xdebug.remote_log="{logpath}/xdebug.log"
xdebug.var_display_max_depth=15
xdebug.profiler_enable=1
xdebug.idekey=xdebug-atom
我使用ssh -R 9001:127.0.0.1:9001 user@ip-address
Chrome浏览器: 我在Chrome上安装了xdebug-helper,并将密钥设置为xdebug-atom,并将其设置为“ Debug”。
原子: 设置Atom-Ide-Ui->启用功能->启用调试器->从不启用 设置php-debug->服务器:服务器侦听端口-> 9001和服务器路径映射
测试:
我在服务器和工作站上都运行了tcptrack -i lo port 9001
。
然后在服务器上运行nc -z -v 127.0.0.1 9001
,我在两个终端上都获得了流量,并在Atom PHP控制台中获得了一条消息。
当使用帮助程序在带有调试功能的Chrome中打开网站时,两个终端都没有流量,PHP控制台也没有流量。
我想念什么?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)