Skip to content

Instantly share code, notes, and snippets.

@awm086
Created March 6, 2014 17:21
Show Gist options
  • Save awm086/9394741 to your computer and use it in GitHub Desktop.
Save awm086/9394741 to your computer and use it in GitHub Desktop.
xdebug.ini
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so
;Uncomment the following to enable xdebug. Check phpinfo always to see loaded modules and proper conf
;xdebug.profiler_enable = 0
;xdebug.profiler_enable_trigger = 1
;xdebug.remote_enable = 0
;xdebug.auto_trace = 0
;xdebug.profiler_output_dir = /tmp
;xdebug.collect_params = 4
;xdebug.trace_output_dir = /tmp
;xdebug.profiler_output_name = cachegrind.%R.%p
;xdebug.trace_output_name = trace.%R.%p
Make sure tmp or whatever output dirs are writable by webgrind
trigger means you can trigger xdebug profile by adding a param XDEBUG_PROFILE=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment