doulong4169
2016-06-17 15:09
浏览 38
已采纳

Ubuntu 16.07 php7.0和xdebug

Recently I have learned how too use xdebug and I want to try and install it to the php.ini for apache.

I managed to install php7.0 as apache module and NOT to run it via php-fpm.

As I have seen the following configuration works for php 5.x versions:

[PHP]
extension=/usr/lib/php5/20131226/mailparse.so
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.max_nesting_level=300

But it may need some tweak to work for php 7.0 . Do you know how to tweak it?

图片转代码服务由CSDN问答提供 功能建议

最近我学会了如何使用xdebug,我想尝试将其安装到php.ini for apache。

我设法安装php7.0作为apache模块而不是通过php-fpm运行它。

我看到以下配置有效 对于php 5.x版本:

  [PHP] 
extension = / usr / lib / php5 / 20131226 / mailparse.so 
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.max_nesting_level = 300 
   
 
 

但它可能需要一些调整才能用于php 7.0。 你知道怎么调整吗?

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • donglu2008 2016-06-17 18:20
    已采纳

    In the end my configuration on file /etc/php5/apache2/php.ini is:

    zend_extension=/usr/lib/php/20151012/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.max_nesting_level=300
    

    And worked like a charm.

    已采纳该答案
    打赏 评论

相关推荐 更多相似问题