title: How to debug Twig?
body: <p>How can I do serious debugging in Twig? I know <a href="https://stackoverflow.com/questions/10120256/how-to-use-dump-in-twig">how to dump single variables</a>. But what if you have no clue which template is rendering the part of the page you are looking at? Or you want to know which templates are used to render a page?</p>
  
  <p>In Drupal 6/7 I can enable <a href="http://drupal.org/project/devel_themer" rel="nofollow noreferrer">the theme developer module</a>. This allows me to point and click on any part of the page and I get a list of all used templates (and much more information). Maybe I’m asking for too much or doing it the wrong way.</p>
  
  <p>How can I find the template in charge of a particular part of the page? If this is too much, how can I see what templates are called by the Twig engine? Getting a trace would also be helpful.</p>