jorgesierra/zf2tracy

Tracy PHP debugger for ZF2

dev-master 2014-05-26 21:03 UTC

This package is not auto-updated.

Last update: 2025-07-15 10:41:34 UTC


README

Tracy PHP debugger module for ZF2

http://nette.github.io/tracy/

Installation

  1. Add to your composer.json and run 'php composer.phar install/update'
{
    "require": {
        "jorgesierra/zf2tracy": "dev-master"
    }
}
  1. Add 'ZF2Tracy' to the enabled modules list

Usage

\Tracy\Debugger::dump($var);

Configuration

return array(
    'tracy_debug' => array(
        'enabled' => TRUE,
        'mode' => FALSE,    // true = production|false = development|null = autodetect|IP address(es) csv/array
        'log' => "",        // bool = enabled|Path to directory eg. data/logs
        'email' => "",      // in production mode notifies the recipient
        'strict' => TRUE,   // bool = cause immediate death|int = matched against error severity
        'max_depth' => 3,   // nested levels of array/object
        'max_len' => 150,   // max string display length
    ),
);

Inspired by https://github.com/webino/ZF2NetteDebug