简体   繁体   English

PHP + Xdebug + PhpStorm - 监听不起作用

[英]PHP + Xdebug + PhpStorm - listening not working

I can't run Xdebug with PhpStorm.我无法使用 PhpStorm 运行 Xdebug。 I think I have everything set up correctly.我想我已经正确设置了一切。

php.ini is set: php.ini 设置为:

[xdebug]
zend_extension="/etc/php/7.3/mods-available/xdebug.ini"
xdebug.mode=debug
xdebug.client_host=127.0.0.1
xdebug.client_port="9003"
xdebug.idekey = "PHPSTORM"

Xdebug is running: Xdebug 正在运行:

在此处输入图像描述

Cookies for listening are sent: Cookies 用于监听发送:

在此处输入图像描述

It is set in PhpStorm as well:它也在 PhpStorm 中设置:

在此处输入图像描述

But it doesn't work.但它不起作用。 Does anyone know where the problem is?有谁知道问题出在哪里?

Does adding是否添加

xdebug.start_with_request = yes xdebug.start_with_request = 是

in php.ini helps?在 php.ini 有帮助吗? I had exactly the same problem and it was fixed by adding the aforementioned line.我遇到了完全相同的问题,并通过添加上述行来解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM