Node.js · Senior · Question 47 of 75
What is a diagnostic report (--report-on-fatalerror, process.report.writeReport())?
- ✓Correct answer: A JSON file with the stack, heap stats, libuv handles, environment and more, written when something goes wrong
- 2A list of npm vulnerabilities
- 3An HTML page with test coverage
Explanation
It helps investigate crashes and hangs in production without attaching a debugger. Reports can contain sensitive environment data, so handle them carefully.