问题描述
我无法使用 PHPStorm 运行 Xdebug。我想我已经正确设置了所有内容。
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 正在运行:
发送用于侦听的 Cookie:
它也在 PHPStorm 中设置:
但它不起作用。有谁知道问题出在哪里?
解决方法
是否添加
xdebug.start_with_request = yes
在 php.ini 中有帮助吗?我遇到了完全相同的问题,并通过添加上述行修复了它。