1. 程式人生 > >Xdebug配置php.ini 可以顯示錯誤提示資訊

Xdebug配置php.ini 可以顯示錯誤提示資訊

[Xdebug]
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
zend_extension_debug=.
xdebug.default_enable =On
xdebug.auto_trace=On
xdebug.show_exception_trace=On

**用來顯示錯誤資訊
display_errors = On
html_errors = On

**顯示堆疊資訊
xdebug.show_local_vars = 1
xdebug.max_nesting_level = 50
xdebug.var_display_max_depth = 6
xdebug.dump_once = On
xdebug.dump_globals = On
xdebug.dump_undefined = On
xdebug.dump.REQUEST = *
xdebug.cli_color = 2

**顯示效能資訊
xdebug.collect_params=On
xdebug.collect_return=On
xdebug.profiler_enable=On
xdebug.trace_output_dir="/opt/xdebug"
xdebug.profiler_output_dir="/opt/xdebug"

**遠端除錯配置資訊
xdebug.remote_enable=On
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp