我在 Ubuntu 9.04(桌面版)上运行 LAMP 服务器。我对 Ubuntu 很陌生,所以我通过 Synaptic 数据包管理器完成了大部分工作。然后我删除了 php5-common 并通过以下方式安装了 php5:apt-get install php5
我的错误报告设置为:error_reporting = E_ALL & ~E_NOTICE
我安装了 Xdebug 并在我的 php.ini 文件中插入了以下内容。
zend_extension=/usr/lib/php5/20060613/xdebug.so
[debug]
; Remote settings
xdebug.remote_autostart=off
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
; General
xdebug.auto_trace=off
xdebug.collect_includes=on
xdebug.collect_params=off
xdebug.collect_return=on
xdebug.default_enable=on
xdebug.extended_info=1
xdebug.manual_url=http://www.php.net
xdebug.show_local_vars=0
xdebug.show_mem_delta=0
xdebug.max_nesting_level=100
;xdebug.idekey=
; Trace options
xdebug.trace_format=0
xdebug.trace_output_dir=/tmp
xdebug.trace_options=0
xdebug.trace_output_name=crc32
; Profiling
xdebug.profiler_append=0
xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=0
xdebug.profiler_output_dir=/tmp
xdebug.profiler_output_name=crc32
现在对于某个项目,我的页面中有以下代码行:
include_once(something.php);
现在,something.php 不存在。因为它已包含在内且不是必需的,所以我希望不会看到任何错误,但 XDebug 会为我提供错误报告。有人知道如何提供帮助吗?