New in Symfony 4.4: Improved dump() Calls in the Console
In addition to new components and big features, new Symfony versions usually add "quality of life" features. These are little features that make you more productive and improve your developer experience in general.
dd() helpers provided by the VarDumper component are a
lightweight alternative when you don't need full-featured debuggers like Xdebug.
However, these helpers behave differently in the browser and the command console.
In the browser,
dd() display both the dumped contents and the
file path and line number where they were called. However, in the console you
only see the dumped contents, so you don't know where the helper was called:
Starting from Symfony 4.4, you'll see a
^ character next to the dumped
contents. Click on it to go directly to the file and line where the dump was
New in Symfony 4.4: Improved dump() Calls in the Console symfony.com/index.php/blog/new-in-symfony-4-4-improved-dump-calls-in-the-consoleTweet 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.