【问题标题】:XDebug with Symfony and PhpStorm doesn't work (Ubuntu installation)Symfony 和 PhpStorm 的 XDebug 不起作用(Ubuntu 安装)
【发布时间】:2016-07-06 19:21:30
【问题描述】:

关于我的系统的事实
Ubuntu 15.10
Php 5.6.11
Symfony 2.7
PhpStorm 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

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

php -v

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

Xdebug shows up under my PhP interpreter

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

【问题讨论】:

    标签: php symfony phpstorm xdebug


    【解决方案1】:

    我通过将 xdebug 设置放入 /etc/php5/apache2/conf.d/20-xdebug.ini 解决了这个问题

    【讨论】:

    • 如果你有足够的代表,你应该接受你的答案......它很有用,可以帮助别人。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-05-31
    • 2015-12-02
    • 2017-11-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多