PhpStorm 10 + PHP 7.0.3 + xDebug 2.4.0RC3 不工作

标签 phpstorm xdebug

我已遵循我发现的所有建议,但无法让 PhpStorm 与 PHP 7 和 xDebug 一起使用。我确实让它与 PHP 5.6 一起工作。

Xdebug 正在由 PHP 加载。我在 phpinfo() 输出中进行了验证。我已将 PhpStorm 切换为使用 PHP 7 版本,它还将正确的调试器列为 xdebug 2.4.0RC3

我的 xdebug 设置是:

zend_extension = "/usr/local/opt/php70-xdebug/xdebug.so"
xdebug.remote_enable = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.remote_host = 127.0.0.1
xdebug.scream = 0
xdebug.cli_color = 1
xdebug.show_local_vars = 1
xdebug.idekey = PHPSTORM

我安装了 xdebug chrome 扩展,并且它正确添加了 Cookie:XDEBUG_SESSION=PHPSTORM;。我还在 PhpStorm 中启用了调试监听器。

任何人都可以建议我还能做什么来尝试触发我的断点吗?

最佳答案

因此,就我而言,我发现通过将端口从 9000 移动到 9001 即可修复。我猜其他东西已经在使用默认端口了。问题解决了!

关于PhpStorm 10 + PHP 7.0.3 + xDebug 2.4.0RC3 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35531546/

相关文章:

php - xDebug 似乎安装正常,但无法与 NetBeans 连接

php - 如何在 Nginx 上使用 Xdebug 和 Laravel,在 Mac 上使用 PHPStorm?

debugging - 如何在Netbeans的调试过程中更改突出显示行的背景颜色?

通过 Composer 设置项目时 PhpStorm "empty path to php"

node.js - PhpStorm - Node.js 核心库激活错误

php - 将多个 xdebug 覆盖率结果整理到一份报告中?

c++ - DBGP 实现 C/C++

php - WordPress 编码标准 – phpcs 警告

PhpStorm 2017.2.4 : highlight matching parentheses on selection