首页 文章

使用Xdebug的debugclient与PHP 7和Ubuntu 16.04

提问于
浏览
0

我想使用XDebug debugclient在本地调试PHP脚本 . 我不关心使用远程IDE或类似的东西 .

不幸的是,我总是这个/tmp/xdebug.log

I: Connecting to configured address/port: 127.0.0.1:8083.
E: Time-out connecting to client. :-(

我已尝试使用php-xdebug包并从源代码编译最新的XDebug 2.4.1,我得到了相同的结果 .

我也尝试过9000(默认),9005,8083等端口 .

我的 xdebug.ini 看起来像这样:

zend_extension=/usr/lib/php/20151012/xdebug.so
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=8083
xdebug.remote_log=/tmp/xdebug.log
xdebug.idekey=mbb

这是Ubuntu 16.04,PHP 7.0.8和Xdebug 2.4.1 .

谁能提出任何建议?

1 回答

  • 0

    你如何启动调试会话?你试过用xdebug_break()吗?

    或者iptables阻止与端口8083的通信? (iptables --list)

    是什么/tmp/xdebug.log?

相关问题