New in Symfony 3.3: Search in dumped contents
Warning: This post is about an unsupported Symfony version. Some of this information may be out of date. Read the most recent Symfony Docs.
Contributed by
Maxime Steinhausser
in #21109.
In Symfony applications, you can use the dump()
function as a better
replacement of PHP's var_dump()
thanks to the VarDumper component.
The dumped contents can be easily navigated with the collapsible toggles, but
sometimes it's hard to find values hidden deep inside complex dumps.
In Symfony 3.3, the dumped contents include a local search box to help you find those values more easily:
To make the search box appear:
- Click anywhere on the dumped contents
- Press
Ctrl. + F
orCmd. + F
- Press
Esc.
to hide the search box
The search experience has been exquisitely polished and it works everywhere:
The web debug toolbar:
The Symfony profiler:
Raw dumps in any PHP application:
Help the Symfony project!
As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.
Comments
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.
(common shortcut in browsers and other applications with such search feature)
Thanks Maxime