Loading...
 
Xdebug - Debugger and Profiler Tool for PHP

Xdebug - Debugger and Profiler Tool for PHP

Xdebug is an extension for PHP to assist with debugging and development.1

Development Environemtns

  • Debugging with PhpStorm
  • Profiling with Xdebug - Besides interactive debugging, PhpStorm integration with Xdebug also supports profiling. PhpStorm provides visual representation of profiling data generated by Xdebug. You can select several snapshots at a time and collect the aggregated profiling information.

Resources

Configuration

/etc/php.d/xdebug.ini
; Enable xdebug extension module
zend_extension="/usr/lib64/php/modules/xdebug.so"

xdebug.profiler_enable=0
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="/var/log/xdebug/"
xdebug.output_name="cachegrind.out.%t-%s"

xdebug.collect_params = 4

xdebug.trace_enable_trigger=1
xdebug.trace_format=1
xdebug.trace_output_dir="/var/log/xdebug/"
xdebug.trace_output_name="trace.%c"

xdebug.remote_enable=1
xdebug.remote_connect_back=1
xdebug.remote_port=9000
xdebug.remote_host=192.168.50.4

Last edited by MichaelAlber .
Page last modified on Saturday April 4, 2020 04:31:26 UTC.