Devel dsm() function in Drupal 8 page.html.twig Is Devel module's dsm() function available in page.html.twig? If it is not available, is there a way to make it available? 

I am able to use dsm() in .theme file but not in page.html.twig. 

I am aware of dump() function in .twig. dump() is similar to var_dump() of php and the output is not as clean as Devel module's dsm() function.

Using dsm() or dpr() in page.html.twig causes error and site does not load.
Why not just do it in hook_preprocess_page() instead.

&lt;?php
function MYMODULE_preprocess_page(&amp;$variables) {
  dpm($variables);
}