如何在没有任何崩溃日志的情况下debugging崩溃?

我的公司给了我一个由另一家公司编写的Sails JS项目。 它随机崩溃没有任何崩溃日志。 有时在10分钟内,有时在4小时内。

// There is no error information here. [nodemon] app crashed - waiting for file changes before starting... 

有什么办法find问题的根源?

首先(就像@Jake Wearybuild议的那样),不要使用nodemon进行debugging,因为它会抑制很多错误信息。

看一下GitHub上的node-inspector ,它对于遍历代码非常有用。

另请参阅有关debugging的官方节点文档,这里是: https : //nodejs.org/api/debugger.html

最后,我经常发现它是有用的,当所有其他都没有使用遗留debugging器 ,虽然它被正式弃用