debugger/profiler
xdebug
Installation
sudo yum install php-pecl-xdebug
Configuration
php.ini
[xdebug] ; run profiler only if XDEBUG_PROFILE is GET or POST param or there is a cookie named XDEBUG_PROFILE xdebug.profiler_enable_trigger=1 ; run profiler only if XDEBUG_PROFILE is set to VZpSHymTZ1jZzPXT (e.g. https://192.168.0.122/lara/admin/Contract?XDEBUG_PROFILE=VZpSHymTZ1jZzPXT) xdebug.profiler_enable_trigger_value=VZpSHymTZ1jZzPXT ; path to store cachegrind files in (must exist and be writeable for apache ; attention: if storing in /tmp or /var/tmp: these dirs are redirected to /tmp/systemd-private-*-httpd.service-*/tmp xdebug.profiler_output_dir="/var/www/lara/xdebug"
file php.ini
:
[xdebug]
xdebug.profiler_enable_trigger=1
xdebug.profiler_enable_trigger_value=VZpSHymTZ1jZzPXT
xdebug.profiler_enable=0
xdebug.profiler_output_dir="/var/www/lara/xdebug"