--trace-uncaught


打印未捕获异常的堆栈跟踪;通常会打印与创建 Error 相关的堆栈跟踪,而此选项会让 Node.js 还打印与抛出值相关的堆栈跟踪(抛出的值不必是 Error 实例)。

【Print stack traces for uncaught exceptions; usually, the stack trace associated with the creation of an Error is printed, whereas this makes Node.js also print the stack trace associated with throwing the value (which does not need to be an Error instance).】

启用此选项可能会对垃圾回收行为产生负面影响。

【Enabling this option may affect garbage collection behavior negatively.】