--abort-on-uncaught-exception


中止而不是退出会生成一个核心文件,用于使用调试器(如 lldbgdbmdb)进行事后分析。

【Aborting instead of exiting causes a core file to be generated for post-mortem analysis using a debugger (such as lldb, gdb, and mdb).】

如果传递了此标志,行为仍然可以通过 process.setUncaughtExceptionCaptureCallback()(以及通过使用依赖它的 node:domain 模块)设置为不终止。

【If this flag is passed, the behavior can still be set to not abort through process.setUncaughtExceptionCaptureCallback() (and through usage of the node:domain module that uses it).】