2017 © Pedro PelĂĄez
 

library tracy-blue-screen-bundle

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

image

vasek-purchart/tracy-blue-screen-bundle

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

  • Thursday, June 21, 2018
  • by VasekPurchart
  • Repository
  • 3 Watchers
  • 10 Stars
  • 9,863 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 13 Versions
  • 16 % Grown

The README.md

Tracy BlueScreen Bundle

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application., (*1)

Why is Tracy's debug screen better than the Symfony default exception screen:, (*2)

  • You can browse all values of function call arguments.
  • All information about the current request and environment.
  • You can view all the information which is contained by the exception (e.g. private properties).
  • Configurable links to files in stacktrace which can open directly in the IDE.
  • Fullscreen layout providing more space for information.
  • Look at the interactive example screen.

However the Symfony profiler provides a lot of useful information about the application when an error occurs, so it is better to have them both available:, (*3)

Nette Tracy with Symfony profiler screenshot, (*4)

Console integration

To provide the same comfort while using Symfony Console this bundle will save a rendered BlueScreen to a file and show you a link for it. If you configure it, it will open the exception directly in your browser., (*5)

Link to generated BlueScreen in Console, (*6)

Usage

If you do not have any custom kernel.exception listeners this works out of the box. However if you have any, you have to ensure that they do not return any response, because that prevents the profiler from showing up (the same applies for the default Symfony exception screen)., (*7)

This bundle expects that you are using the default Symfony ErrorController. You could use it with different one, you just need to pass vasek_purchart.tracy_blue_screen.blue_screen.error_renderer to it., (*8)

Console integration also works out of the box, if you do not have an console.error listener that would prevent execution of this one. If you need to change the default position of this listener (see order in bin/console debug:event-dispatcher), use the configuration option listener_priority., (*9)

Configure the browser option to open the exceptions directly in your browser, configured binary must be executable with exec()., (*10)

If you want to configure your application to always convert warnings and notices to exceptions use the debug.error_handler.throw_at parameter (see PHP manual for other available values):, (*11)

parameters:
    debug.error_handler.throw_at: -1

This bundle does not provide a dedicated logging functionality. If you want to use Tracy for logging e.g. in production use the monolog-tracy-bundle, which provides a Tracy Monolog handler., (*12)

Configuration

Configuration structure with listed default values:, (*13)

# config/packages/tracy_blue_screen.yaml
tracy_blue_screen:
    controller:
        # Enable debug screen for controllers.
        # Enabled by default only in dev environment with debug mode on.
        enabled: ~

    console:
        # Enable debug screen for console.
        # Enabled by default only in dev environment with debug mode on.
        enabled: ~

        # Directory, where BlueScreens for console will be stored.
        # If you are already using Tracy for logging, set this to the same.
        # This will be only used, if given Tracy\Logger instance does not have a directory set.
        log_directory: '%kernel.logs_dir%'

        # Configure this to open generated BlueScreen in your browser.
        # Configuration option may be for example 'google-chrome'
        # or 'firefox'and it will be invoked as a shell command.
        browser: null

        # Priority with which the listener will be registered.
        listener_priority: 0

    blue_screen:
        # Add paths which should be collapsed (for external/compiled code) so that actual error is expanded.
        collapse_paths:
            # Defaults:
            - '%kernel.project_dir%/bootstrap.php.cache'
            - '%kernel.cache_dir%'
            # plus paths set in BlueScreen instance used (/vendor)

You can also override services used internally, for example if you need to specify options for the BlueScreen instance, you can provide custom instance with an alias:, (*14)

services:
    my_blue_screen:
        class: 'Tracy\BlueScreen'
        properties:
            info:
                - 'environment: %kernel.environment%'

    vasek_purchart.tracy_blue_screen.tracy.blue_screen: '@my_blue_screen'

Installation

Install package vasek-purchart/tracy-blue-screen-bundle with Composer:, (*15)

composer require vasek-purchart/tracy-blue-screen-bundle

Register the bundle in your application:, (*16)

// config/bundles.php
return [
    // ...
    VasekPurchart\TracyBlueScreenBundle\TracyBlueScreenBundle::class => ['all' => true],
];

The Versions

21/06 2018

dev-master

9999999-dev

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

debug bundle error exceptions debugger tracy bluescreen

21/06 2018
16/06 2017

dev-dev-dependencies

dev-dev-dependencies

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

debug bundle error exceptions debugger tracy bluescreen

10/05 2017

2.0

2.0.0.0

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

debug bundle error exceptions debugger tracy bluescreen

20/11 2016

1.0.1

1.0.1.0

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

debug bundle error exceptions debugger tracy bluescreen

05/08 2016
16/07 2016
28/12 2015

0.5

0.5.0.0

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

debug bundle error exceptions debugger tracy bluescreen

07/12 2015

0.4.1

0.4.1.0

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

debug bundle error exceptions debugger tracy bluescreen

29/11 2015

0.4

0.4.0.0

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

debug bundle error exceptions debugger tracy bluescreen

25/06 2015

0.3

0.3.0.0

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

debug bundle error exceptions debugger tracy bluescreen

25/06 2015

0.2

0.2.0.0

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

debug bundle error exceptions debugger tracy bluescreen

19/05 2015

0.1

0.1.0.0

This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.

  Sources   Download

MIT

The Requires

 

The Development Requires

debug bundle error exceptions debugger tracy bluescreen