2017 © Pedro Peláez
 

symfony-bundle tracy-bundle

Nette Tracy debugger for Symfony

image

kutny/tracy-bundle

Nette Tracy debugger for Symfony

  • Tuesday, January 30, 2018
  • by kutny
  • Repository
  • 6 Watchers
  • 29 Stars
  • 45,935 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 3 Open issues
  • 17 Versions
  • 8 % Grown

The README.md

Tracy PHP debugger bundle for Symfony

This bundle adds the powerful Tracy debug tool to the Symfony2 framework., (*1)

Nette Tracy screenshot, (*2)

Why is Tracy better than the Symfony build-in debugger?, (*3)

  • Exception stack trace contains values of all method arguments.
  • Request & Response & Server environment information is displayed on the error page.
  • The whole error page with full stack trace can be easily stored to some directory as HTML file (useful on production mode).
  • Webmaster can be notified by email about errors that occured on the site.

See full Tracy docs and sample error page., (*4)

Tracy is a part of the Nette Framework., (*5)

Installation

1) Install via composer:, (*6)

~~~~~ bash composer require kutny/tracy-bundle, (*7)


2) Add KutnyTracyBundle to your application kernel. For This bundle to catch as many errors as possible it should be the first bundle in the bundles array. ~~~~~ php // app/AppKernel.php public function registerBundles() { return array( new Kutny\TracyBundle\KutnyTracyBundle(), // ... ); }

Configuration

1) app.php / app_dev.php, (*8)

Open web/app.php and web/app_dev.php files and add the following code before the AppKernel class is instantiated:, (*9)

~~~~~ php \Tracy\Debugger::enable();, (*10)


Or force the **production mode** where only [general server error page](http://nette.github.io/tracy/images/tracy-error2.png) will be displayed to the user ([read more](https://github.com/nette/tracy#production-mode-and-error-logging)): ~~~~~ php \Tracy\Debugger::enable(\Tracy\Debugger::PRODUCTION);

I also recommend you to enable Tracy in a strict mode so it can handle errors of type E_NOTICE and E_WARNING too., (*11)

~~~~~ php \Tracy\Debugger::$strictMode = true;, (*12)


**2) config.yml** ~~~~~ yaml kutny_tracy: emails: ['errors@mycompany.com'] # error notification recipients exceptions_directory: <directory> # optional, default directory set to %kernel.logs_dir%/exceptions store_username_in_server_variable: true|false # optional, default value = false; stores username of logged user in $_SERVER['SYMFONY_USERNAME'] - helps you to find out which user encountered the error ignored_exceptions: - Symfony\Component\HttpKernel\Exception\BadRequestHttpException - RuntimeException - UnexpectedValueException

License

This bundle license: https://github.com/kutny/tracy-bundle/blob/master/LICENSE, (*13)

Tracy debugger license: https://github.com/nette/tracy/blob/master/license.md, (*14)

The Versions

30/01 2018

dev-master

9999999-dev https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

30/01 2018

1.11

1.11.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

28/11 2017

1.10

1.10.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

08/07 2017

1.9

1.9.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

28/02 2017

1.8

1.8.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

27/11 2015

1.7

1.7.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

17/11 2015

1.6

1.6.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

15/08 2015

1.5.0

1.5.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

22/07 2015

1.4.0

1.4.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

04/06 2015

1.3.0

1.3.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

05/02 2015

1.2.0

1.2.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

30/01 2015

1.1.0

1.1.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

19/12 2014

1.0.2

1.0.2.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

11/03 2014

1.0.1

1.0.1.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

24/02 2014

1.0

1.0.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

23/12 2013

v0.9.0

0.9.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging

10/06 2013

0.1

0.1.0.0 https://github.com/kutny/tracy-bundle

Nette Tracy debugger for Symfony

  Sources   Download

MIT

The Requires

 

by Jiri Koutny

debug nette debugging