Skip to content

Instantly share code, notes, and snippets.

@robdecker
Forked from zakiya/debug.twig
Last active January 19, 2021 18:50
Show Gist options
  • Save robdecker/f3486127d3ab043d6be31ea91a1f1106 to your computer and use it in GitHub Desktop.
Save robdecker/f3486127d3ab043d6be31ea91a1f1106 to your computer and use it in GitHub Desktop.
[Debugging Twig in Drupal] #d8 #twig
{# ~ Core ~ #}
{# {{ dump() }} #}
{# {{ dump(page) }} #}
{# ~ Devel~ #}
{# {{ kint()}} #}
{# {{ kint(page)}} #}
{# {{ devel_dump(page) }} #}
{# {{ devel_breakpoint() }} #}
{# ~ Devel + Kint library + settings change ~
{# https://site.lndo.site/admin/config/development/devel #}
{# https://gitlab.com/drupalspoons/devel/-/issues/358 #}
{# {{ kint(page)}} #}
{# ~ Twig Tweak ~#}
{# {{ drupal_dump(page) }}
{{ drupal_breakpoint() }}
{# ~ Twig Xdebug ~ #}
{# {{ breakpoint }} #}
{# ~ Other/ maybe? ~ #}
{# {{ dsm(kint(page)) }} #}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment