我如何查看警告/错误的堆栈跟踪,这些警告/错误在控制台中显示为“((节点:SOME_NUMBER)”)

时间:2018-07-25 13:34:24

标签: node.js debugging

我的控制台显示

(node:27266) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:27266) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

如果我能在这些点看到堆栈跟踪,那将非常有帮助

0 个答案:

没有答案