【发布时间】:2017-11-06 01:14:30
【问题描述】:
我在使用 php7 和 Apache2 在 ElementaryOS (Ubuntu 16.04.2) 上运行 xdebug 时遇到了一些问题。
我使用sudo apt-get install php-xdebug 安装它。安装没有报告任何错误。我已经添加了
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1 ; Not safe for production servers
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true
到/etc/php/7.0/apache2/php.ini。
我还需要添加 xdebug.so 文件位置,例如 zend_extension="/path/to/xdebug.so"。但是,安装后我一直找不到 xdebug.so。
有谁知道 xdebug.so 在哪里,或者说自从 php7.0 发布以来指令发生了变化。大多数说明/帮助似乎都是针对 php5 在线的。
谢谢。
【问题讨论】:
-
我发现了一个类似的问题。也许它会help。
-
谢谢我找到了,忘记了这篇文章。
-
我投票结束这个问题,因为这不是一个与编程相关的问题,它应该是unix.stackexchange.com的主题