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
Ctrl. + For
Cmd. + F
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: