diagnostic report
A JSON summary of a Node.js process's state, including stacks, heap statistics, resource usage and loaded libraries, written on demand or on a crash.
In more detail
Enable it with --report-on-fatalerror or write one with process.report.writeReport(). Attaching it to crash logs shows what the process was doing when it died.
Related terms
- uncaughtExceptionMonitor — A Node.js process event emitted just before an uncaught exception is handled, letting you record it without stopping the crash.
- heap snapshot — A file recording every object in a JavaScript heap at one moment and how they refer to each other, used to find memory leaks.
Taught in
- Global Error Trapping: uncaughtException & Exits — Node.js Internals & Backend Services