Major News in Tracy in 2019
In the last year, Tracy has introduced a lot of innovations in improving the user experience. Let's summarize the most important ones.
10 times faster dump
dump() and all its variations, such as
barDump() etc., prints arrays and objects in a clever way. They
generate HTML code only for those parts that are immediately visible, without
having to open them by click. The HTML code of the collapsed parts then
This, on the one hand, will significantly reduce the amount of HTML code, but above all it will speed up its display, because the browser does not have to parse the saved code. It might seem that HTML parsing is something so fast that this optimization won't have much effect, but the opposite is true. Acceleration is really dramatic, usually 10 times. Watch a video with the web developer console:
Tracy 2.6 comes with 10× faster dump() 😈https://t.co/gmOIDg4Pib pic.twitter.com/obDGBOCO1t— Nette Framework (@nettefw) February 17, 2019
Tracy has been able to display AJAX requests for some time, even without the
feature in version 2.6, which is the ability to display more than one request.
Tracy 2.6 comes with multiple AJAX bars! 💯https://t.co/iR5tBFYICY pic.twitter.com/Oial7BPibS— Nette Framework (@nettefw) February 20, 2019
Version 2.7.2 comes with another new feature, which is a visual distinction of ajax panels. “Ajax” now appears in the upper right corner.
The “BlueScreen” now contains a new
CLI panel if the error
occurred while running a command-line program.
Tracy has received a number of cosmetic enhancements that enhance the user experience. For example, I would like to mention the ability to sort tables by any column with one click:
Tracy 2.6 comes with table sorting.https://t.co/gmOIDg4Pib pic.twitter.com/solPol2MRE— Nette Framework (@nettefw) February 17, 2019
To avoid logging sensitive information in BlueScreen, you can determine contents of which keys will not revealed:
Tracy\Debugger::getBlueScreen()->keysToHide = 'login';
By default, the contents of these keys are not printed:
You can use PSR-3 loggers in Tracy, and vice versa. This is done by a pair
One more thing
And finally, one thing that connects Tracy and Latte. Tracy can utilize source mapping provided by Latte and display not only the line where the error occurred in the generated PHP code, but also in the template.
One more thing Tracy 2.6 comes with source mapping 🤑https://t.co/iR5tBFYICY pic.twitter.com/iSbQLzb7IW— Nette Framework (@nettefw) February 20, 2019
Sign in to submit a comment