Xdebug 不理我

发布于 2025-01-11 03:36:17 字数 530 浏览 2 评论 0原文

我有 Xdebug 3.1.1 和 PhpStorm 2021.3。

php.ini:

[xdebug]
zend_extension=D:\Wamp64\bin\php\php8.1.0\zend_ext\php_xdebug-3.1.1-8.1-vs16-x86_64.dll
xdebug.mode=debug
xdebug.client_host=127.0.0.1
xdebug.client_port=9003
xdebug.start_with_request=trigger
xdebug.idekey=PHPSTORM

PhpStorm 中的调试端口是 9003,服务器是 localhost。

当我启动 PHP 脚本并在 PhpStorm 中侦听端口时,没有任何反应,并且 Xdebug 不返回任何值。在调试窗口中,我看到“正在等待使用 ide key 'PHPSTORM' 的传入连接”。但是当我仅调试本地 CLI 脚本文件(无服务器)时,它工作正常。

I have Xdebug 3.1.1 and PhpStorm 2021.3.

php.ini:

[xdebug]
zend_extension=D:\Wamp64\bin\php\php8.1.0\zend_ext\php_xdebug-3.1.1-8.1-vs16-x86_64.dll
xdebug.mode=debug
xdebug.client_host=127.0.0.1
xdebug.client_port=9003
xdebug.start_with_request=trigger
xdebug.idekey=PHPSTORM

Debug port in PhpStorm is 9003 and server is localhost.

When I start my PHP script and listen ports in PhpStorm nothing happens and Xdebug does not return any value. In debug window I see "Waiting for incoming connection with ide key 'PHPSTORM'". But when I debug only local CLI script file (no server) it's working fine.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文