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

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

关于我的系统的事实
Ubuntu 15.10
Php 5.6.11
Symfony 2.7
Php风暴 10
xDebug 2.4
我真的很难让 xdebug 在 PhpStorm 中的 Symfony 项目下工作。

我安装了xdebug 在我的 /etc/php5/apache2/php.ini 中配置了 php.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

但是当我 "Start listening for PHP Debug Connections" 并在我的应用程序中设置断点并 运行 测试其中的断点时,Xdebug 不会破坏程序。

php-v

PHP 5.6.11-1ubuntu3.1 (cli)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies
with Xdebug v2.4.0, Copyright (c) 2002-2016, by Derick Rethans

Xdebug shows up under my PhP interpreter

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

好吧,我通过将 xdebug 设置放在 /etc/php5/apache2/conf.d/20-xdebug.ini

中解决了这个问题