New in Symfony 3.1: Web Debug Toolbar and Profiler Enhancements
In Symfony 3.1, the Web Debug Toolbar and the Profiler have introduced lots of new features. The major new features will be explained in upcoming blog posts, so in this article we'll focus on smaller but useful changes that will improve your day-to-day work.
Show silenced error logs separately¶
The log panel of the Symfony Web Debug Toolbar separates messages into three groups: deprecated calls, silenced errors and the rest of messages. However, in the Symfony profiler, the silenced errors were mixed with other types of logs.
In Symfony 3.1, the logs of the silenced errors are displayed in a separate tab, so you can easily focus on them when needed:
Look for profiles based on their HTTP status¶
The Symfony Profiler includes a search feature to look for past profiles based on several conditions: IP, HTTP method, URL, etc. Oddly enough, it wasn't possible to look for profiles based on their HTTP status. In Symfony 3.1 this is now possible:
Improved how log contexts are displayed¶
Log messages commonly include metadata to provide some context about where they were generated. In the Symfony Profiler this information is inlined bellow each log message. However, when the context is long or complex, the result is barely intelligible.
In Symfony 3.1 we improved the way complex log context are displayed. Initially you only see the beginning of the context and when clicking on the "Show full context" link you'll see the full context contents properly formatted:
In order to improve your productivity, this is only enabled for long contexts. The rest of log contexts are fully inlined:
Displayed the HTTP status code for Ajax requests¶
The Symfony Web Toolbar displays in real-time the Ajax requests performed by your Symfony application. Each request displays the HTTP method, the URL, the execution time and a link its profile. In Symfony 3.1, this panel now also displays the color-coded HTTP status, so you can instantly filter errors from regular requests:
New in Symfony 3.1: Web Debug Toolbar and Profiler Enhancements symfony.com/index.php/blog/new-in-symfony-3-1-web-debug-toolbar-and-profiler-enhancementsTweet this
Become a certified developer! Exams are online and available in all countries.Register Now
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.