crashreporter

Dump node context into a file on process crash, send it by mail

node-crashreporter

Dump node info on process uncaughtException exception

[sudo] npm install [-g] crashreporter
require('rashreporter');                               
        
require('rashreporter').configure({
    outDir: <your out directory>, // default to cwd 
    exitOnCrash: <true|false> // if you want that crash reporter exit(1) 
});
        

crash_YYYY-MM-DD_HH-mm-ss_zzz_UTC.txt

-----------------------
environnement var:
-----------------------
gid: 
-----------------------
uid: 
-----------------------
pid: 
-----------------------
process title: 
-----------------------
uptime (sec):
-----------------------
arch: 
-----------------------
versions:
-----------------------
memory usage:
-----------------------
require.cache:
-----------------------
active handle:
-----------------------
active request:
-----------------------
stack