简体   繁体   English

在Windows 10上设置Eclipse和xDebug进行PHP调试失败

[英]Setting up Eclipse and xDebug for PHP debugging failed Windows 10

I don't know if I can be helped but maybe someone has an idea that will help me setting up Eclipse for PHP debugging. 我不知道能否得到帮助,但是也许有人有一个想法可以帮助我设置Eclipse进行PHP调试。 And before you are annoyed by "another" post on this topic, I already have researched the existing ones. 在您对这个话题的“另一个”帖子感到恼火之前,我已经研究了现有的帖子。 I set up XAMPP and it works fine. 我设置了XAMPP,它工作正常。 I checked the phpinfo() and it shows xDebug is working. 我检查了phpinfo(),它显示xDebug正在工作。 I setup Eclipse Neon with the latest Java which was working too. 我使用也能运行的最新Java设置了Eclipse Neon。 Then I went to the preferences and set up the PHP web application. 然后,我转到了首选项并设置了PHP Web应用程序。 I used all the standards like port 9000 and break at first line of code. 我使用了所有标准,例如端口9000,并在第一行代码处中断了。 Whenever I executed a debug Eclipse gives me the feedback that it tries to establish a connection with the xdebug but stops at 48% and does not continue. 每当我执行调试时,Eclipse都会给我反馈,它会尝试与xdebug建立连接,但会以48%的速度停止并且不会继续。 Of course a debugging like that is not possible. 当然,这样的调试是不可能的。 Anyway after 4 days I thought I throw it out there and ask for ideas what I still could do. 无论如何,四天后,我以为我把它扔了出去,问我仍然可以做些什么。 I even turned my firewall off without any success. 我什至没有关闭防火墙。 Any idea is welcome... I am about to give up... 欢迎任何想法...我将放弃...

Thank you. 谢谢。

I know this is an old question, but: 我知道这是一个老问题,但是:

One thing to check is that you have in php.ini / phpinfo() 要检查的一件事是您在php.ini / phpinfo()中

xdebug.remote_enable = On xdebug.remote_enable =开

After that it should work assuming the rest of the run configuration is ok. 之后,假设其余的运行配置都可以正常运行。 I had the same 48% issue. 我有同样的48%问题。

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

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