带有Symfony和PhpStorm的XDebug不起作用(Ubuntu安装) [英] XDebug with Symfony and PhpStorm doesn't work (Ubuntu installation)

查看:98
本文介绍了带有Symfony和PhpStorm的XDebug不起作用(Ubuntu安装)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Facts about my system
Ubuntu 15.10
Php 5.6.11
Symfony 2.7
PhpStorm 10
xDebug 2.4
I really struggle getting xdebug to work under my Symfony project in PhpStorm.

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

I installed xdebug configured the php.ini file in my /etc/php5/apache2/php.ini and in the cli folder

[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

[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不会破坏程序.

But when I "Start listening for PHP Debug Connections" and set breakpoints in my application and run tests with breakpoints in it, Xdebug just doesn't break the programm.

php -v

PHP 5.6.11-1ubuntu3.1(cli)
版权所有(c)1997-2015 The PHP Group
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

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显示在我的PhP解释器下

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

If you need more Information please let me know Thanks

推荐答案

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

Well I solved it by putting the xdebug settings in /etc/php5/apache2/conf.d/20-xdebug.ini

这篇关于带有Symfony和PhpStorm的XDebug不起作用(Ubuntu安装)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆