dd() in Twig: Adding Dump-and-Die to Shopware Templates
Twig's native dump() outputs a variable and lets the template keep rendering. Sometimes you need execution to stop right there - the same way dd() works in PHP. Here's a one-class Twig extension that adds exactly that.