Debug node
- if we choose this config we will only need to run the debugger, it will be automatically attached to the app
Attach by Process ID
- when we want to choose this config
- we will need in first place to run the app with --inspect:
node --inspect app.js
ornode --inspect .
- then we will attach the debugger to it by choosing the option with --inspect
Attach to nodemon
- this type of config is great for nodemon, because it help debugger attached to always to the same process via the same port
- first run
npx --inspect .
- then attach the debugger