I want to use dump()
in my .twig
template (inside custom theme).
The problem is, when I place {{ dump() }}
the page is just blank.
I have had:
- Set
twig.confing debug: true
inservices.yml
. - Cleared cache.
The moment I remove {{ dump() }}
everthing works.
After hours of googling I've found some information about mystery $settings['twig_debug'] = TRUE;
here (I don't even have such line in my file, but adding it doesn't change a thing) and $twig = new Twig_Environment($loader, array(...
(where to find it even?).
I work on clean & fresh Drupal 8 installation, turing debbuing on (step 1.) does include comments in source code (as it should) but use dump()
once and all you see is just an blank page.