title: How to output a message in Googles Blockly?
body: <p>I'm having a bit of fun on <a href="https://blockly-games.appspot.com" rel="nofollow noreferrer">https://blockly-games.appspot.com</a> and have got to <a href="https://blockly-games.appspot.com/pond-duck?lang=en" rel="nofollow noreferrer">the last level</a>  where you can write full blown javascript (<code>new Date().getTime();</code> is very handy).  </p>
  
  <p>Despite having the console open in Chrome (ctrl-shift-j) I can't seem to write anything to it with <code>console.log("test");</code> from within the game.  When I do I see:</p>
  
  <pre><code>// Starting battle with 2 players.                         compressed.js:420
  // [Player] throws an error: Unknown identifier: console   compressed.js:423
  // undefined                                               compressed.js:423
  // [Player] dies.                                          compressed.js:416
  </code></pre>
  
  <p>Yet if I type <code>console.log("hmm");</code> in the console I properly see:</p>
  
  <pre><code>// console.log("hmm"); 
  // hmm                                                     VM1038:2 
  // undefined
  </code></pre>
  
  <p>Same story if I try to use <code>alert("test")</code>.  </p>
  
  <p>I want to debug, but the only forms of output I've found are manipulating the duck and throwing Unknown identifiers.  Is there any way out of this sandbox?  </p>
  
  <p>Update: <a href="https://stackoverflow.com/questions/217957/how-to-print-debug-messages-in-the-google-chrome-javascript-console?rq=1">How do I print debug messages in the Google Chrome JavaScript Console?</a> has some ideas for restoring console but they don't seem to work in this case.</p>
  
  <p>Update: just to be clear this is what chrome looks like when experiencing this error.</p>
  
  <p><a href="https://i.stack.imgur.com/9WPQv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9WPQv.png" alt="enter image description here"></a></p>