title: Chrome: Print exception details to console
body: <p>How do I print the stack trace of an Exception in the chrome devtools from my code?</p>
  
  <p>I tried the following:</p>
  
  <pre><code> function doSomething() { 
       undefined(); // This throws an exception
   }
  
   try {
        doSomething();
   } catch (e) {
        console.error("Exception thrown", e);
   }
  </code></pre>
  
  <p>But this yields the following result:</p>
  
  <pre><code> Exception thrown TypeError {}
  </code></pre>
  
  <p>And if I expand the arrow next to it, it points me to the line where the console.error() call was made, so I don't get to see where the original error actually happened.</p>
  
  <p>What would be the best way to include the original error information (including message and complete stack trace to the exact location where the error happened) in the console output? </p>