Twig/Theme Debug Not Working Even Though Set

 

So, your debug output isn't working.

You checked to make sure you followed all the steps here.

But still... no theme debug output. WTF?

Try turning on and off twig caching. For me, it seemed something was stuck or whatever. First turn it on:

  twig.config:
    debug: true
    auto_reload: true
    cache: true

Then do drush cr.

Then turn it off:

  twig.config:
    debug: true
    auto_reload: true
    cache: false

Then do drush cr.

Sometimes the code that makes Drupal run can kind of pile up and get stuck, like a logjam in a river. This just clears the blockage.

Just kidding. But isn't it fun to think about computer systems in colorful, natural metaphors?

About the Author

Hi. My name is Jeremiah John. I'm a sf/f writer and activist.

I just completed a dystopian science fiction novel. I run a website which I created that connects farms with churches, mosques, and synagogues to buy fresh vegetables directly and distribute them on a sliding scale to those in need.

In 2003, I spent six months in prison for civil disobedience while working to close the School of the Americas, converting to Christianity, as one does, while I was in the clink.