node-superstack:node.js 的长堆栈跟踪

时间:2021-05-29 14:01:03
【文件属性】:
文件名称:node-superstack:node.js 的长堆栈跟踪
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-29 14:01:03
JavaScript 超级堆栈 node.js 在 async/io 边界上的长堆栈跟踪 安装 npm install superstack 用 只需要在您的项目中使用superstack 。 理想情况下,第一个要求之一(看看它是如何工作的) var superstack = require ( 'superstack' ) ; function f ( ) { throw new Error ( 'foo' ) ; } setTimeout ( f , Math . random ( ) ) ; setTimeout ( f , Math . random ( ) ) ; 您的堆栈跟踪现在将超出异步调用边界。 从上面的代码。 超级堆栈之前 Error: foo at f [as _onTimeout] (.../node-superstack/foobar.js:2:11)
【文件预览】:
node-superstack-master
----.travis.yml(48B)
----index.js(7KB)
----package.json(642B)
----test()
--------index.js(3KB)
--------modules()
----perf.js(592B)
----LICENSE(1KB)
----.gitignore(97B)
----README.md(3KB)

网友评论