We are trying to use the kint() or drump() debugging functions inside twig templates in Drupal 8 but both does not seem to be working even though we have tried all the approces to get them working available online.

I have renamed my default.services.yml file to services.yml and set twig.config debug, auto reload and cache to true, yet I can't get any output out from those functions; however, it does not fail with a non-existent function error either.

When I try to use the dsm() function in my controllers or other files outside twig templates, it works as expected.

Any idea where the problem might be?

Thanks a lot in advance.

  • Have you enabled the Devel Kint module along with the Devel module? – LittleCoding Nov 10 '16 at 17:44
  • Of course I did. – crzpiot Nov 10 '16 at 18:34
  • 1
    Do you have the Twig extension installed and enabled in your apache? Should be able to get the Twig version from phpinfo() – LittleCoding Nov 10 '16 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.