dump() not working in Drupal 8 (blank page, debbugging is enabled) I want to use dump() in my .twig template (inside custom theme).

The problem is, when I place {{ dump() }} the page is just blank.

I have had:


Set twig.confing debug: true in services.yml.
Cleared cache.


The moment I remove {{ dump() }} everthing works.

After hours of googling I've found some information about mystery $settings['twig_debug'] = TRUE; here (I don't even have such line in my file, but adding it doesn't change a thing) and $twig = new Twig_Environment($loader, array(... (where to find it even?).

I work on clean &amp; fresh Drupal 8 installation, turing debbuing on (step 1.) does include comments in source code (as it should) but use dump() once and all you see is just an blank page.
I agree with the comment left for the question: It seems you have an out of memory issue. Check the error log for the server.

I had the same problem with dump() and kint() in an implementation of template_preprocess_views_view_field(), while trying to output the content of a row, on a clean and fresh Drupal 8 installation. 
I found a workaround for kint(), which seems to temporary fix the memory issue. Add the following settings in the config.default.php file for the Kint module.

/** @var int max array/object levels to go deep, if zero no limits are applied */
$_kintSettings['maxLevels'] = 4;


Take it as a hint: Print a specific variable, not the whole array of variables.