IT技术博客大学习 共学习 共进步
全部 移动开发 后端 数据库 AI 算法 安全 DevOps 前端 设计 开发者

xdebug 配置,在这里备份下

铭扬工作室Blog 2009-11-12 00:03:33 累计浏览 3,177 次
本机暂存

    似乎也没啥好备份的,下次方便点吧。

    [Xdebug]

    ; Type: boolean, Default value: On. If this setting is On then stacktraces will be shown by default on an error event.

    xdebug.default_enable=on

    ; superglobals is shown when an error situation occurs.

    ; xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD

    ; Type: boolean, Default value: 1. Controls whether the values of the superglobals as defined by the xdebug.dump.* settings whould be shown or not.

    xdebug.dump_globals=1

    ; Type: integer, Default value: 1. Controls whether Xdebug should enforce ‘extended_info’ mode for the PHP parser; this allows Xdebug to do file/line breakpoints with the remote debugger.

    xdebug.extended_info=1

    ; Type: string, Default value: http://www.php.net. This is the base url for the links from the function traces and error message to the manual pages of the function from the message.

    xdebug.manual_url=http://www.php.net

    ; Type: integer, Default value: 100. Controls the protection mechanism for infinite recursion protection.

    xdebug.max_nesting_level=100

    ; Type: boolean, Default value: 1.

    xdebug.overload_var_dump

    ; Type: integer, Default value: 0. When this setting is set to 1, profiler files will not be overwritten when a new request would map to the same file

    xdebug.profiler_append=0

    ; Type: integer, Default value: 0. Enables Xdebug’s profiler which creates files in the profile output directory. Those files can be read by KCacheGrind to visualize your data.

    xdebug.profiler_enable=1

    ; Type: integer, Default value: 0. When this setting is set to 1, you can trigger the generation of profiler files by using the XDEBUG_PROFILE GET/POST parameter, or send a cookie

    xdebug.profiler_enable_trigger=0

    ; Type: string, Default value: /tmp. The directory where the profiler output will be written to

    xdebug.profiler_output_dir=”E:/amp/log_and_tmp/php_xdebug_profile”

    ; Type: string, Default value: cachegrind.out.%p

    ; This setting determines the name of the file that is used to dump traces into. The setting specifies the format with format specifiers, very similar to sprintf().

    ; Specifier Format Example-Filename Meaning

    ; %c trace.%c trace.1258863198.xt crc32 of the current working directory

    ; %p trace.%p trace.5174.xt pid

    ; %r trace.%r trace.072db0.xt random number

    ; %s cachegrind.out.%s cachegrind.out._home_httpd_html_test_xdebug_test_php script name(this one is not available for trace file names)

    ; %t trace.%t trace.1179434742.xt timestamp (seconds)

    ; %u trace.%u trace.1179434749_642382.xt timestamp (microseconds)

    ; %H trace.%H trace.kossu.xt $_SERVER[\'HTTP_HOST\']

    ; %R trace.%R trace._test_xdebug_test_php_var=1_var2=2.xt $_SERVER[\'REQUEST_URI\']

    ; %S trace.%S trace.c70c1ec2375af58f74b390bbdd2a679d.xt session_id (from $_COOKIE if set)

    ; %% trace.%% trace.%%.xt literal %

    xdebug.profiler_output_name=ptrace.%s.%r.out.xt

    ; Type: boolean, Default value: 0

    xdebug.remote_enable=0

    ; Type: integer, Default value: 0

    ; When this setting is set to 1, Xdebug will show a stack trace whenever an exception is raised - even if this exception is actually caught.

    xdebug.show_exception_trace=0

    ; Type: integer, Default value: 0

    ; When set to ‘1′ the trace files will be appended to, instead of being overwritten in subsequent requests.

    xdebug.trace_options=0

    ; Type: string, Default value: /tmp

    ; The directory where the tracing files will be written to, make sure that the user who the PHP will be running as has write permissions to that directory.

    xdebug.trace_output_dir=”E:/amp/log_and_tmp/php_xdebug_profile”

    ; Type: string, Default value: trace.%c

    xdebug.trace_output_name=trace.%s.%r.out.xt

同分类推荐文章

  1. 等了十年的 Go 链式管道,终于来了:seq 让你像写 Scala 一样写 Go (2026-06-25 18:38:18)
  2. Go 实验特性详解 (2026-06-21 10:05:27)
  3. amd64 微架构级别对 Go 程序性能提升多少? (2026-06-21 09:38:49)

查看更多 后端 文章 →

建议继续学习

  1. 使用gettext来支持PHP的多语言 (累计阅读 39,267)
  2. WordPress插件开发 -- 在插件使用数据库存储数据 (累计阅读 29,162)
  3. Paypal接口详细代码(PHP版,非API接口) (累计阅读 19,407)
  4. 我的PHP,Python和Ruby之路 (累计阅读 13,146)
  5. include(“./file.php”)和include(“file.php”)区别 (累计阅读 12,788)
  6. 15个最好的免费开源电子商务平台 (累计阅读 12,539)
  7. Redis消息队列的若干实现方式 (累计阅读 12,085)
  8. 到底什么是MVC? (累计阅读 11,865)
  9. 整理了一份招PHP高级工程师的面试题 (累计阅读 11,708)
  10. Rolling cURL: PHP并发最佳实践 (累计阅读 11,486)