如何使用Chrome-Node-Debugger捕获Node.js启动错误?

时间:2019-06-28 04:55:55

标签: node.js passport.js google-oauth config chrome-debugging

创建新的Google策略时,在启动时发生错误。升级我的配置包时引入了此错误。

我想在调试器中捕获错误,但是除非Node没有错误启动,否则调试器将无法连接。

错误发生在这里:

let credentials = helper.getPassport();
console.log(credentials) //   can see no difference but this is the fail point
let google_strategy = new GoogleStrategy(credentials, ()=>{}); // error

0 个答案:

没有答案