Skip to content

Instantly share code, notes, and snippets.

@paulera
Last active January 25, 2019 09:30
Show Gist options
  • Save paulera/bfa5466db96c43c49af43a70b773a28c to your computer and use it in GitHub Desktop.
Save paulera/bfa5466db96c43c49af43a70b773a28c to your computer and use it in GitHub Desktop.
PHP configuration for enabling XDebug, including profiler and tracer
; All settings: https://xdebug.org/docs/all_settings
; DEBUGGER
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_log=/tmp/xdebug/xdebug.log
xdebug.var_display_max_data=2048
xdebug.var_display_max_depth=5
; PROFILER
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir=/tmp/xdebug/profiler
xdebug.profiler_output_name=callgrind.%t.%H.%R
; TRACER
xdebug.trace_enable_trigger=1
xdebug.trace_output_dir=/tmp/xdebug/tracer
xdebug.trace_output_name=trace.%t.%H.%R.html
xdebug.trace_format=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment