What's wrong with this simple debugging code? Spend whole day trying to make working simple debugging code for Tweme theme (using D8).

function tweme_preprocess_node(&amp;$variables) {   
   $node = $variables['elements']['#node'];
   kint($node);
   kim ($variables);
}


The only response is blank page no other info.

What's wrong with my debugging code?
The kint() and ksm() functions output the results in the status messages block.

Make sure in /admin/structure/block the Status messages system block is set to a region.