title: Nodejs debug errors in production
body: <p>I have a nodejs script running in production</p>
  
  <p>I unlikely (once in thousand times) get errors like this:</p>
  
  <pre><code>TypeError: value is out of bounds
      at checkInt (buffer.js:1009:11)
      at Buffer.writeUInt16LE (buffer.js:1067:5)
      at Object.foo.bar (/fake/path/name.js:123:1);
      at Object.foo.bar2 (/fake/path/name2.js:123:1);
      at Object.foo.bar3 (/fake/path/name3.js:123:1);
  </code></pre>
  
  <p>Causing the production server to crash...</p>
  
  <p>Great I have a stacktrace! But I want to know what it's current data is for each call or all the data?</p>
  
  <p>What are some great tools or code to use to for error logging(with it's current data) on production code?</p>