0

I have an error that occurs at startup when I create a new Google strategy. This errror was introduced when I upgraded my config package.

I want to catch the error in the debugger, but the debugger will not connect unless Node starts up with out errors.

The error occurs here:

let credentials = helper.getPassport();
console.log(credentials) //   can see no difference but this is the fail point
let google_strategy = new GoogleStrategy(credentials, ()=>{}); // error
  • did you run node with --inspect flag? – Vaibhav Jun 28 '19 at 05:47
  • Yes. I have to manually remove and put back the application folder each time for some reason. –  Jun 28 '19 at 05:59
  • I don't follow so what i believe is you can use `--inspect-brk=127.0.0.1:9229` which is the default debugging port this command while starting node will just put a break before user code starts – Vaibhav Jun 28 '19 at 06:12

0 Answers0