Netbeans x PHP x Chrome - XDebug不工作后,El Capitan更新


Netbeans x PHP x Chrome - XDebug not working after El Capitan update

从Yosemite更新到El Capitan后,断点不再在Netbeans中工作,我不断得到这个错误:

等待连接(netbeans-xdebug)…

更新后我应该改变我的php.ini/httpd.conf文件吗?

下面是我对php.ini的xdebug部分:

[xdebug] 
zend_extension="/usr/lib/php/extensions/no-debug-non-zts-20121212/xdebug.so"
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
;xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"

问题是El Captain更新创建了一个新的php.ini文件并将旧文件复制为'php.ini-5.2-previous'。

在我用xdebug信息编辑了当前的php.ini之后,我可以解决这个问题。