--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.