Symfony’s https://symfony.com/doc/current/components/var_dumper.html is a game changer when it comes to debugging. It allows us to dump variables in a clean and efficient way.

Today, we’ll see how we can extend it to dump our objects, or some vendor objects, in a more readable way.

And another tip we use quite often: a Twig extension to dump a variable in a template in production!

Some will say it’s a bad practice, but we find it very useful to debug some data issues in production.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners