带有Symfony和PhpStorm的XDebug不起作用(Ubuntu安装)


XDebug with Symfony and PhpStorm doesn't work (Ubuntu installation)

关于我的系统
的事实 Ubuntu 15.10 Php 5.6.11
Symfony 2.7
PhpStorm 10

xDebug 2.4
我真的很难让xdebug在PhpStorm中的Symfony项目下工作。

我安装了 xdebug在我的/etc/php5/apache2/php 中配置了 php.ini 文件.ini并在 CLI 文件夹中

[xdebug]
zend_extension=/usr/lib/php5/20131226/xdebug.so
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM
xdebug.remote_host=127.0.0.1

但是当我"开始侦听 PHP 调试连接"并在应用程序中设置断点并运行带有断点的测试时,Xdebug 不会破坏程序。

php -v

PHP 5.6.11-1ubuntu3.1 (cli)
版权所有 (c) 1997-2015 PHP 集团
Zend Engine v2.6.0, 版权所有 (c) 1998-2015 Zend Technologies
与 Zend OPcache v7.0.6-dev, 版权所有 (c) 1999-2015, Zend 技术
与 Xdebug v2.4.0, 版权所有 (c) 2002-2016, 作者:Derick Rethans

Xdebug 出现在我的 PhP 解释器下

如果您需要更多信息,请告诉我谢谢

好吧,

我通过将 xdebug 设置放在/etc/php5/apache2/conf.d/20-xdebug 中解决了它.ini