简体   繁体   English

Xdebug和PhpStorm-调试不起作用

[英]Xdebug and PhpStorm - Debugging not working

I am using PhpStorm. 我正在使用PhpStorm。

PHP Version 7.2.7 and Xdebug version 2.6.1 PHP版本7.2.7和Xdebug版本2.6.1

I have change the port to 9001 instead of 9000 (because it is listening to TCP) 我将端口更改为9001而不是9000(因为它正在侦听TCP)

Not it is listening to port. 不是,它在监听端口。 I have put breakpoint. 我已经设置了断点。 But still it is not debugging. 但是仍然不是调试。 在此处输入图片说明

Is there any setting I am still missing? 我还缺少任何设置吗?

In Debugger: it is showing to 'Connected to localhost:65451' and project is demo.local (virtual host) 在Debugger中:显示为“ Connected to localhost:65451”,项目为demo.local(虚拟主机)

In Run -> Stop Listening to PHP Debug connections already have 在运行->停止侦听PHP调试连接中已经有

I cannot comment so I am adding what worked for me here. 我无法发表评论,因此我在这里补充了对我有用的内容。

I was struggling with this thing from quite some time and I installed this extensions Xdebug helper https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc/related and it works for me! 很长时间以来,我一直在努力解决这个问题,并且我安装了此扩展Xdebug帮助程序https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc/related ,它对我有用!

Basically check if your phpstorm configurations are all right. 基本上检查您的phpstorm配置是否正确。 https://www.jetbrains.com/help/phpstorm/configuring-xdebug.html https://www.jetbrains.com/help/phpstorm/configuring-xdebug.html

Then I tried 3 plugins JetBrains Toolbox Extension (didn't worked) https://chrome.google.com/webstore/detail/jetbrains-toolbox-extensi/offnedcbhjldheanlbojaefbfbllddna 然后我尝试了3个JetBrains Toolbox Extension插件(没有用) https://chrome.google.com/webstore/detail/jetbrains-toolbox-extensi/offnedcbhjldheanlbojaefbfbllddna

JetBrains IDE Support(had some problem communicating with phpstorm or didn't worked ) https://chrome.google.com/webstore/detail/jetbrains-ide-support/hmhgeddbohgjknpmjagkdomcpobmllji JetBrains IDE支持(与phpstorm通讯出现问题或无法正常工作) https://chrome.google.com/webstore/detail/jetbrains-ide-support/hmhgeddbohgjknpmjagkdomcpobmllji

Xdebug helper (worked! yeeey ) https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc/related Xdebug助手(有效!yeeey) https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc/related

and that's it :D 就是这样:D

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

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