Download the PHP package cdn77/tracy-blue-screen-bundle without Composer
On this page you can find all versions of the php package cdn77/tracy-blue-screen-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cdn77/tracy-blue-screen-bundle
More information about cdn77/tracy-blue-screen-bundle
Files in cdn77/tracy-blue-screen-bundle
Package tracy-blue-screen-bundle
Short Description This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.
License MIT
Informations about the package tracy-blue-screen-bundle
Tracy BlueScreen Bundle
This bundle lets you use the Tracy's debug screen in combination with the the default profiler in your Symfony application.
Why is Tracy's debug screen better than the Symfony default exception screen:
- 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:
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.
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).
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
.
Console integration also works out of the box, if you do not have an console.error
listener that would prevent execution of this one. Again, this can be tweaked using the respective listener_priority
option.
Configure the browser
option to open the exceptions directly in your browser, configured binary must be executable with exec()
.
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):
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.
Configuration
Configuration structure with listed default values:
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:
Installation
Install package cdn77/tracy-blue-screen-bundle
with Composer:
Register the bundle in your application:
All versions of tracy-blue-screen-bundle with dependencies
symfony/config Version ^6.4 || ^7.0
symfony/console Version ^6.4 || ^7.0
symfony/dependency-injection Version ^6.4 || ^7.0
symfony/http-kernel Version ^6.4 || ^7.0
symfony/yaml Version ^6.4 || ^7.0
tracy/tracy Version ^2.8