Hacker News new | ask | show | jobs
by williamdclt 956 days ago
As somebody else pointed out, —inspect or —inspect-brk is what you’re after.

In VsCode you can also use the “open JavaScript debug terminal” command: it opens a terminal in which any node command automatically starts with a debugger attached