title: Catch node.js undefined variable
body: <p>In normal Javascript in the Browser Google Chrome will display an error in the console when you try to use an undefined variable. However in Node.js no error is displayed and I think the function that is using the undefined variable exits. </p>
  
  <p>I've added:</p>
  
  <pre><code>process.on('uncaughtException', function(err) {
      console.log( 'uncaughtException :', err );
  });
  </code></pre>
  
  <p>but this isn't executed. </p>
  
  <p>I've also added try-catch in the calling function and no exception is raised there.</p>
  
  <p>And I'm using: "use strict";</p>
  
  <p>So my question is, is there some way I can get/see an error when an undefined variable is accessed?</p>