3 ms·
--inspect-brk will start the node process then immediately break. It looks like ndb supports inspect-brk too.
by city41 8y ago
--inspect-brk will start the node process then immediately break. It looks like ndb supports inspect-brk too.
- alangpierce 8y agoAt least in my situation, with no additional configuration, --inspect-brk works, but when it's paused at the start, I can't navigate to any of my files to set breakpoints, so the most straightforward way to set a breakpoint is a `debugger;` statement in the code. I guess that's one of the things that works better in ndb: "You can place breakpoints before the modules are required".
- city41 8y agoIt looks like ndb solves that problem: "You can place breakpoints before the modules are required."