New in Symfony 3.1: Web Debug Toolbar and Profiler Enhancements
Warning: This post is about an unsupported Symfony version. Some of this information may be out of date. Read the most recent Symfony Docs.
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.
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:
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:
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:
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:
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.