title: Getting stack trace for an error when running code from the console in Chrome
body: <p>I am calling a function from the console but when it throws an exception I do not receive a stack trace like I would if the code was executed normally.</p>
  
  <p>Is there a way I can modify my command (perhaps with try/catch) to have it provide me this information? </p>
  
  <p><strong>to clarify:</strong></p>
  
  <p>page.js:</p>
  
  <pre><code>function otherStuff() { return ['a','b',undefined,'c'];
  function doStuff() {
      var x = otherStuff();
      var z = parseInt(x[2]); // this will throw an error
  }
  </code></pre>
  
  <p>console, after loading a html page that links page.js</p>
  
  <pre><code>&gt; otherStuff();
  </code></pre>
  
  <p>I get no line number from the Error that is returned to me. When running it from the page (instead of the console) i would receive a line number and a stack trace. </p>