Outputting PHP variables to the browser console
<?php echo "<script>console.log($post->ID)</script>"; ?>