I'm using node-debug and know which file and line for which I want to set a breakpoint.
Here's what happens:
debug> setBreakpoint('./services/search.js', 359)
Warning: script './services/search.js' was not loaded yet.
You can't list source code right now
Why can't I "list source code"? How can I add a breakpoint dynamically (without editing the source code to add debugger
)?
I tried other tools for debugging, and would love to use Chrome Dev Tools, but don't think it's possible since our project is stuck on v0.12.3.
Also, some options are limited/tricky because I'm using Vagrant with a headless VM.