【问题标题】:Make PHP html_erros link active in xdebug在 xdebug 中激活 PHP html_erros 链接
【发布时间】:2014-02-13 11:42:10
【问题描述】:

在 PHP 上,当 html_errors 指令设置为 On 时,它会显示指向违规函数手册的便捷链接,例如:

警告:require_once(offending_file.php) [function.require-once]:打开流失败:...

但是,一旦打开 xdebug,标签就会被详细传递,你最终会得到类似的结果:

警告:require_once(offending_file.php) [http://php.net/manual/function.require-once'>function.require-once]:无法打开流:...

使用 xdebug 时如何再次启用这些链接?我查看了 xdebug 指令,但找不到那个。

【问题讨论】:

    标签: php xdebug directive


    【解决方案1】:

    虽然我无法重现您的行为,但与此相关的设置是 xdebug.manual_url。

    无论如何,这是我的配置,您可以测试一下。

        zend_extension=/usr/lib64/php5.5/lib/extensions/no-debug-zts-20121212/xdebug.so
    xdebug.auto_trace="1"
    xdebug.trace_output_dir="/var/log/xdebug"
    xdebug.trace_output_name="trace.%s_%t"
    xdebug.trace_format="0"
    xdebug.trace_options="1"
    xdebug.collect_assignments="1"
    xdebug.collect_includes="1"
    xdebug.collect_params="4"
    xdebug.collect_return="0"
    xdebug.collect_vars="1"
    xdebug.default_enable="1"
    xdebug.extended_info="1"
    xdebug.manual_url="http://www.php.net"
    xdebug.max_nesting_level="100"
    xdebug.show_exception_trace="1"
    xdebug.show_local_vars="1"
    xdebug.show_mem_delta="1"
    xdebug.dump.COOKIE=false
    xdebug.dump.ENV=false
    xdebug.dump.FILES=false
    xdebug.dump.GET="NULL"
    xdebug.dump.POST="NULL"
    xdebug.dump.REQUEST="NULL"
    xdebug.dump.SERVER="NULL"
    xdebug.dump.SESSION="NULL"
    xdebug.dump_globals="1"
    xdebug.dump_once="1"
    xdebug.dump_undefined="1"
    xdebug.pror_enable="0"
    xdebug.profiler_enable="1"
    xdebug.profiler_output_dir="/var/log/xdebug"
    xdebug.profiler_output_name="%s_%t"
    xdebug.profiler_enable_trigger="0"
    xdebug.profiler_append="0"
    xdebug.profiler_aggregate="0"
    xdebug.remote_enable="On"
    xdebug.remote_handler="dbgp"
    xdebug.remote_host="localhost"
    xdebug.remote_mode="req"
    xdebug.remote_port="9000"
    xdebug.remote_autostart="0"
    xdebug.remote_log=""
    xdebug.idekey=""
    xdebug.var_display_max_data="16384"
    xdebug.var_display_max_depth="10"
    xdebug.var_display_max_children="512"
    xdebug.max_nesting_level="100"
    xdebug.overload_var_dump="1"
    xdebug.scream="1"
    xdebug.cli_color="1"
    xdebug.coverage_enable="1"
    

    【讨论】:

      猜你喜欢
      • 2011-02-06
      • 1970-01-01
      • 1970-01-01
      • 2017-10-30
      • 2013-06-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-22
      相关资源
      最近更新 更多