dump(), kint() & print_r() are not working in .theme file
Just include Kint debugger in your theme file:

require_once('modules/devel/kint/kint/Kint.class.php');


and use Kint like so:

Kint::dump( $_SERVER );