Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 593 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 593 Bytes

DON'T USE THIS

There is a much better implementation at https://www.drupal.org/project/twig_xdebug

Twig Breakpoint

Twig Breakpoint is a Drupal 8 module that enables you to set xdebug breakpoints in twig templates.

How to use it

  • Enable the Twig Breakpoint module
  • Insert {{ breakpoint() }} in your Twig template.

You might have to click a little through the stack frames, to get to the variables you are interested in.

Requirements

  • Working Drupal 8 installation
  • Working xdebug installation

inspired by http://aj.garcialagar.es/blog/how-to-set-breakpoints-in-twig/