prof-rossetti / internet-technologies

Internet Technologies (for Business)
Other
2 stars 72 forks source link

Debugging Node.js Programs #29

Open s2t2 opened 2 years ago

s2t2 commented 2 years ago

Run a script with inspect mode, then press n to go to each next line (how to go straight to a debugger statement instead?) Then type repl to actually access the variables.

node inspect my_program.js

h/t: https://www.youtube.com/watch?v=vW0pmFYWmCU

see: https://nodejs.org/api/inspector.html