title: node.js debugging with source line numbers
body: <p>Similar questions has been asked, I went through 'how to debug node' threads, but
  those are however either old or not about the problem i got.</p>
  
  <p><strong>Problem:</strong></p>
  
  <p>I'm writing some small tools in node.js stack - and my debugging experience is quite frustrating: when an exception is thrown, in many cases I get very annoying messages like the one here:</p>
  
  <p><code>TypeError: Bad argument</code></p>
  
  <p>wtf? it's neither verbose or useful - no source line number, no information in which file this exception was thrown. </p>
  
  <p><strong>Question:</strong></p>
  
  <p>How do I get my console to output usefull information when exceptions/errors are thrown and console.log function has something to say. would be great to have a simple console.log call where it actually puts a line number and maybe a file name where the message happens.</p>