xdebug是很好的php调试工具.
为了方便,我将xdebug在php.ini的配置列出来,供大家参考:
[Xdebug]zend_extension = "C:/xampp/php/ext/php_xdebug.dll";xdebug.default_enable=Off
xdebug.remote_enable=1xdebug.remote_host=127.0.0.1xdebug.remote_port=9000xdebug.remote_handler=dbgpxdebug.remote_mode=reqxdebug.remote_autostart = false
xdebug.dump_globals=1xdebug.dump=COOKIE,FILES,GET,OST,REQUEST,SERVER,SESSIONxdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1xdebug.show_mem_delta=1
xdebug.collect_includes=1xdebug.collect_vars=1xdebug.collect_params=4xdebug.collect_return=1
xdebug.auto_trace=0xdebug.trace_options=0xdebug.trace_format=0xdebug.trace_output_dir="C:/EasyPHP//xdebug/trace"xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0xdebug.profiler_append=1xdebug.profiler_enable_trigger=1xdebug.profiler_output_dir="C:/EasyPHP//xdebug/profiler"xdebug.profiler_output_name="cachegrind.out.%s.%t"[Xdebug]