Skip to content

Instantly share code, notes, and snippets.

@bgadrian
Created March 16, 2015 17:06
Show Gist options
  • Save bgadrian/e45dd7b52a9c2a015180 to your computer and use it in GitHub Desktop.
Save bgadrian/e45dd7b52a9c2a015180 to your computer and use it in GitHub Desktop.
Xdebug
<?php
//http://sourceforge.net/projects/precompiledbin/
//firefox addon https://addons.mozilla.org/en-US/firefox/addon/the-easiest-xdebug/?src=api
//tutorial http://devzone.zend.com/1120/introducing-xdebug/
if (APPLICATION_ENV == 'development')
xdebug_start_trace('E:\wamp\tmp\xdebug\callgrind.brentz.',XDEBUG_TRACE_HTML);
//XDEBUG_TRACE_HTML XDEBUG_TRACE_COMPUTERIZED XDEBUG_TRACE_APPEND
xdebug_stop_trace();
;http://xdebug.org/docs/all_settings
[xdebug]
xdebug.remote_enable = off
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = on
xdebug.profiler_output_name = callgrind.out.%H.%R
xdebug.profiler_output_dir = "E:/wamp/tmp/xdebug/"
xdebug.idekey = "alfa"
xdebug.collect_params = 4
xdebug.collect_return = off
xdebug.show_local_vars=1
xdebug.show_exception_trace=On
xdebug.max_nesting_level=50
;GET or POST parameter XDEBUG_PROFILE
xdebug.profiler_enable_trigger=On
;connection with phpdesigner
xdebug.remote_enable=true
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment