- Open Terminal/CMD
- Navigate to the folder of the file to debug
node inspect filename.js
- You will then see the debugging screen. This is what you will be using later. Type control c twice and exit the debugger.
debugger;to create a breakpoint
- Run step 3 again and a breakpoint will occur