PHP中的Xdebug不会在intelliJ Idea中的断点处停止

时间:2015-11-20 04:51:54

标签: php intellij-idea xdebug osx-elcapitan

环境 OS X El Capitan

phpinfo();

IntelliJ IDE 13设置

enter image description here

List<User> users  = Users.where("status = ? ", "active");
TimeStamp ts = users.getTimestamp("CREATED_DATE");

enter image description here enter image description here 听取请求 enter image description here enter image description here

相同的设置过去运行良好(只需在浏览器中点击php url并在代码的断点处停止控制)但在我不得不使用自制软件重新安装php53后停止工作。

可能会出现什么问题。现在var_dump()是它看来唯一的方式。

1 个答案:

答案 0 :(得分:0)

经过一个月的试验和错误,看起来网络服务器没有收听端口9000.我在ext-xdebug.ini和IDE首选项上将端口更改为9090并重新启动apache,它工作正常!

➜  ~   sudo lsof -i :9090
COMMAND   PID    USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
httpd   20822  daemon   22u  IPv4 0xead9c592a7139c1b      0t0  TCP localhost:49428->localhost:websm (CLOSED)
httpd   20822  daemon   23u  IPv4 0xead9c592ab5b9fbb      0t0  TCP localhost:49438->localhost:websm (CLOSED)
httpd   20822  daemon   26u  IPv4 0xead9c592aab3517b      0t0  TCP localhost:49436->localhost:websm (CLOSED)
httpd   20822  daemon   27u  IPv4 0xead9c592aa9224fb      0t0  TCP localhost:49440->localhost:websm (CLOSED)
httpd   20824  daemon   22u  IPv4 0xead9c592ab6406db      0t0  TCP localhost:49472->localhost:websm (CLOSED)
httpd   20824  daemon   23u  IPv4 0xead9c592ab640fbb      0t0  TCP localhost:49473->localhost:websm (CLOSED)
idea    21828 user1  287u  IPv4 0xead9c592afc6e33b      0t0  TCP *:websm (LISTEN)