dongyou6847 2018-03-19 18:10
浏览 1042
已采纳

PhpStorm没有在Xdebug的断点处停下来

I am trying to debug a Yii2 project using Xdebug.

Before formatting the MacOS, I just entered the web project(Apache 2 web server) from browser and PhpStorm was automatically stopping at breakpoints. Now I have set up everything but PhpStorm does not stop at them.

Here is the PhpStorm validation of debugger:

enter image description here

Here is CLI interpreter (php 7.0 executable)

enter image description here

Here is the IDE key for xdebug:

enter image description here

I have installed the Xdebug Chrome extension, and it is in debug mode.

What I am missing? What may be the cause that PhpStorm does not stop at breakpoints?

  • 写回答

2条回答 默认 最新

  • douhan4812 2018-03-21 09:15
    关注

    Before formatting the MacOS, I just entered the web project (Apache 2 web server) from browser and PhpStorm was automatically stopping at breakpoints. Now I have set up everything but PhpStorm does not stop at them.

    There is a big chance that you may have installed too much stuff. I mean -- something that you unaware of or how it works.

    Right now it sounds like it might be php-fpm -- it also uses TCP 9000 port that Xdebug uses by default ... so when Xdebug is making debug connection to IDE it connects to php-fpm instead (and PhpStorm cannot detect on Mac that such port is already in use).

    Therefore: please change Xdebug port to be some another number (e.g. 9001 should be fine) in both php.ini and PhpStorm settings.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题