Print out the contents of node object in a node template How do I print out the contents of the $node object in a node template in a way that is easily readable. I thought that &lt;?php dpr($node);?&gt; would do it but that doesn't seem to work in my template.
Try below code

&lt;?php
   print "&lt;pre&gt;";
   print_r($node);
   print "&lt;/pre&gt;";
?&gt;


Alternatively you can use below code too...

&lt;?php
  drupal_set_message("&lt;pre&gt;" . print_r($node, 1) . "&lt;/pre&gt;");
?&gt;