Put a where
debugger
statement where you want to break and run:npm run devi
i
stands for inspect
as in node inspect
.This pauses at the start of execution. So just run
c
and normal execution resumes until the debugger;
statement is reached.