Dump output in Drupal 8/9

Perhaps due to my curvature or lack of knowledge of the normal settings, I have never been able to get data output to work in Drupal 8/9 twig templates, neither with devel, nor with kint, nor with the twig_vardumper module, which supposedly has the same functionality.

However, the drupal_dump command partially saved the situation, which has a syntax similar to the usual and familiar dvl

{{ drupal_dump(node) }}

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
The comment language code.