Ubuntu 16.07 php7.0 和 xdebug

Ubuntu 16.07 php7.0 and xdebug

最近我学会了如何使用 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。你知道怎么调整吗?

最后我在文件 /etc/php5/apache2/php.ini 上的配置是:

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

工作起来很有魅力。