简体   繁体   English

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

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

I'm using XAMPP and PHP-Debug package for Atom IDE and download xdebug dll file. 我为Atom IDE使用XAMPP和PHP-Debug软件包,并下载xdebug dll文件。

this is my php.ini xdebug : 这是我的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"

and using XAMPP and ATOM IDE for run a simple script but I get this error : 并使用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]

I see someone suggest to change xdebug.remote_autostart=1 to xdebug.remote_autostart=0 and read xdebug Time-out connecting to client. 我看到有人建议将xdebug.remote_autostart=1更改为xdebug.remote_autostart=0并读取xdebug超时连接到客户端。 :-( using phpstorm 7.1.3/vagrant/virtualbox/magento but still doesn't work :-(使用phpstorm 7.1.3 / vagrant / virtualbox / magento,但仍然无法正常工作

PHP-debugger setting : PHP调试器设置:

在此处输入图片说明

after so many try i solved my problem with some change: 经过这么多尝试,我通过一些更改解决了我的问题:

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

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

2-php.ini: 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-install xdebug helper extension for chrome or Firefox : 3-安装适用于chrome或Firefox的xdebug帮助程序扩展:

在此处输入图片说明

4- 4 在此处输入图片说明

5-and change path mapping in php-debug package to [{"remotePath":"C:/xampp/htdocs","localPath":"C:/xampp/htdocs"}] 5,然后将php-debug包中的路径映射更改为[{"remotePath":"C:/xampp/htdocs","localPath":"C:/xampp/htdocs"}]

6- click on php debug icon and refresh Chrome or Firefox(with alt+F9 in your code) : 6- 单击php debug图标并刷新Chrome或Firefox(代码中包含alt + F9): 在此处输入图片说明

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

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

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