PhpStorm 2020.1 对 Chrome Xdebug 扩展没有反应

PhpStorm 2020.1 does not react to Chrome Xdebug extension

我在 Mac 上 运行ning Xdebug 2.9,我能够在 PhpStorm 2020.1 中调试 PHP 脚本,但我无法获得 IDE 当我在浏览器上 运行 的简单脚本中设置断点时,对 Chrome Xdebug 扩展作出反应。

我激活了扩展(它是绿色的)并且我在扩展选项中将 PHPSTORM 设置为 IDE 键,我正在监听 PHP 调试连接但是PhpStorm 仍然没有对此做出反应。

我还在 php.ini 文件中设置了以下内容:

debug.remote_enable = 1

除此之外我不知道配置什么

编辑: 我在网络上将 MAMP 用于 PHP。解决方案是在我的 MAMP php 版本的 php.ini 中取消注释“zend_extension”键,而不是指向我自己的 xdebug 扩展。

我使用以下 ini 配置:

xdebug.remote_enable = on
xdebug.remote_connect_back = on
xdebug.idekey = PHPSTORM
xdebug.remote_autostart = off
xdebug.remote_port = 9000

这是我的 PHPSTORM 配置:

P.S.: 但它不适用于 cli 请求。要为 cli 请求启用调试,您应该设置:

xdebug.remote_autostart = on