在 Debian 上使用 NetBeans 和 XDebug 调试 Symfony2 项目 OS

Debug a Symfony2 project with NetBeans and XDebug on Debian OS

我通常使用 PhpStorm,xdebug 设置简单明了。但现在我必须设置 NetBeans 才能使用 xdebug。我在 php.ini 文件中有以下配置:

[XDebug]

zend_extension=/usr/lib/php5/20131226/xdebug.so

xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.idekey=netbeans-xdebug

我也试过把配置放在xdebug.ini文件里。但这并没有改变任何东西。 我是如何配置 netbeans IDE:

我设置了一个断点并启动了调试器,但它就是不想停止。我相信我的 xdebug 配置是正确的,因为我在 PhpStorm 中调试没有任何问题。对我遗漏的内容有什么建议吗?

提前致谢!

这个配置确实有效。我只需要重新启动 NetBeans IDE。它有时会出现一些错误,需要重新启动才能再次开始工作。