title: How to kill execution in Twig after dump()?
body: <p>I'm using the <code>{{ dump(foo) }}</code> function in Twig to debug my templates. However, if the template is throwing errors after the dump() function, you will only see Symfony's debugging page informing you of the error. You can obviously comment out the offending lines of code in the Twig template, but is there a way to kill the execution of the template immediately after so that the output of the dump() function is the last thing printed on the screen. Naively I'm thinking of something like <code>{{ dump(foo) }} {{ die() }}</code>. Any ideas on how you could achieve this?</p>