Print out the contents of node object in a node 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;