How can I do some serious debugging in Twig? I know how to reset individual variables . But what if you don’t know which template displays the part of the page that you are viewing? Or do you want to know which templates are used to display the page?
In Drupal 6/7, I can enable the theme developer module . This allows me to point and click on any part of the page, and I get a list of all the templates used (and much more). Maybe I ask too much or do it wrong.
How can I find a template that is responsible for a specific part of the page? If it's too much, how can I see which patterns are invoked by the Twig engine? Getting a trace would also be helpful.
source share