【问题标题】:Where can I change the settings of the Xdebug?我在哪里可以更改 Xdebug 的设置?
【发布时间】:2018-07-19 20:26:41
【问题描述】:

phpinfo() 显示配置路径:/etc/php5/apache2/conf.d/20-xdebug.ini

但文件只包含一个字符串:zend_extension=xdebug.so

文件usr/lib/php5/20100525/xdebug.so 如下所示:

在 php.ini 中,没有包含“xdeb”或“remote_connect”的行

UP:我需要什么? phpinfo() 表明 xdebug.remote_connect_back 设置已关闭。我需要打开它。

【问题讨论】:

  • 你到底想做什么?
  • @AyyappanSekar phpinfo() 表明 xdebug.remote_connect_back 设置已关闭。我需要打开它。

标签: php debugging xdebug remote-debugging


【解决方案1】:

只需填写您的 /etc/php5/apache2/conf.d/20-xdebug.ini 类似的内容:

zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.max_nesting_level=10000
;...

然后重启 apache。 xdebug 的所有设置都可用here

【讨论】:

    猜你喜欢
    • 2015-06-10
    • 2016-12-20
    • 2016-03-25
    • 1970-01-01
    • 2013-09-08
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    • 2013-07-07
    相关资源
    最近更新 更多