【问题标题】:Enabling Xdebug in PhpStorm在 PhpStorm 中启用 Xdebug
【发布时间】:2021-03-13 10:00:25
【问题描述】:

我已经在我的 Paragon 服务器中安装了 Xdebug,并且我正在尝试在 PhpStorm 中启用它。但是当我按照这些步骤操作时,我无法正确验证安装。

我已将 php 安装目录中的 php.ini 文件更新为 Xdebug 3.0 的新版本:

[Xdebug]
zend_extension = C:\Laragon\bin\php\php-7.4.13-Win32-vc15-x64\ext\php_xdebug-3.0.0-7.4-vc15-x86_64.dll
xdebug.mode=debug
xdebug.client_port=9000

但我仍然不断收到 PhpStorm 中的验证错误。我还为 Xdebug 安装了 Chrome 扩展,但我似乎无法让它与 PhpStorm 一起使用。

【问题讨论】:

  • 你的 PhpStorm 版本是多少?
  • @LazyOne 我目前安装了 2020.2 版。
  • 也适用于以前的版本(用 2002.2.4 测试)。端口从 9000 更改为 9003。使用自定义值并添加 xdebug.client_host= 和 xdebug.mode=debug。

标签: php phpstorm xdebug


【解决方案1】:

Xdebug 3 将在 PhpStorm 2020.3 版本中完全支持,目前有一个 RC 版本,将在未来几天内发布。

自 EAP #6 构建以来就已支持它:查看此博客文章了解更多信息:https://blog.jetbrains.com/phpstorm/2020/11/phpstorm-2020-3-eap-6/


在 PhpStorm 2002.2 及更早版本中,您可以跳过/忽略此类验证。无论如何,它仅用于信息目的(因为它不保证调试连接将实际工作(例如,由于防火墙或此验证检查未检查的其他网络相关问题)。


P.S. 以下是 Xdebug 3(此处为 PHP 8.0)的 2020.3 RC 版本中验证屏幕的外观:

相同,但使用 Xdebug 2.9.8 时(我仍然保留 Xdebug 2 的 PHP 7.3):

【讨论】:

    猜你喜欢
    • 2017-05-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-02-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多