DUMP()

PENDING…

1
2
3
4
{{dump( )}}                    // Will list all twig variables in the current twig template
{{dump( content )}}            // Will list all twig variables in the current content
{{dump( variable_name )}}      // Will list all twig variables in the your variables
{{dump( variable_name.0.entity["#items"].0.field.value|raw)}}    // Another example

https://www.drupal.org/docs/develop/theming-drupal/twig-in-drupal/debugging-twig-templates

PHP X-debug

PENDING…

https://www.drupal.org/docs/develop/theming-drupal/twig-in-drupal/debugging-twig-templates https://xdebug.org/docs/step_debug https://chromewebstore.google.com/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc?pli=1 https://www.youtube.com/watch?v=HrQWtbxY1Hs https://xdebug.org/wizard http://localhost:8888/MAMP/phpinfo.php