PHP Xdebug 日志显示超时连接错误。使用 Atom IDE

PHP Xdebug log show time-out connection error. Using Atom IDE

我正在使用 XAMPP 和 PHP-Atom 的调试包 IDE 并下载 xdebug dll 文件。

这是我的 php.ini xdebug :

[xdebug]
zend_extension="C:\xampp\php\ext\php_xdebug-2.7.2-7.3-vc15-x86_64.dll"
xdebug.remote_enable=1
xdebug.remote_host="localhost"
xdebug.remote_connect_back=0    # Not safe for production servers
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_mode=req
xdebug.remote_autostart=1
xdebug.remote_log="C:\Users\mehra\Documents\xdebug.log"

并使用 XAMPP 和 ATOM IDE 作为 运行 一个简单的脚本,但我收到此错误:

[12120] Log opened at 2019-08-08 13:36:30
[12120] I: Connecting to configured address/port: localhost:9000.
[12120] E: Time-out connecting to client (Waited: 200 ms). :-(
[12120] Log closed at 2019-08-08 13:36:30
[12120]

我看到有人建议将xdebug.remote_autostart=1改为xdebug.remote_autostart=0 并阅读 xdebug Time-out connecting to client. :-( using phpstorm 7.1.3/vagrant/virtualbox/magento 但仍然无效

PHP-调试器设置:

经过多次尝试,我通过一些改变解决了我的问题:

1-File->Settings->Packages->ide-php

PHP路径:C:\xampp\php\php.exe

2-php.ini:

zend_extension="C:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=0    # Not safe for production servers
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_mode=req
xdebug.remote_autostart=1
xdebug.remote_log="C:\Users\mehra\Documents\xdebug.log"
xdebug.idekey =xdebug-atom

3-为 chrome 或 Firefox 安装 xdebug 辅助扩展:

4-

5-并将php-调试包中的路径映射更改为[{"remotePath":"C:/xampp/htdocs","localPath":"C:/xampp/htdocs"}]

6-单击 php 调试图标 并刷新 Chrome 或 Firefox(在您的代码中使用 alt+F9):

https://www.imprich-create.site/archives/366