Always clear your breakpoints and set them after you attach. I learned the hard way. This is certainly a bug.
I've been digging into this and here is what I have found so far for 0.3.0.
This does not work!
- In Code add a breakpoint to app.js or a route
- In terminal run
node --debug src/server/app.js
- In Code attach the debugger
This works!
- In terminal run
node --debug src/server/app.js
- In Code remove all breakpoints
- In Code add a breakpoint to app.js or a route
- In Code attach the debugger
This does not work, as --debug doesn't kick in unless its the arg after node and before the file
- In terminal run
node src/server/app.js --debug
- In Code remove all breakpoints
- In Code add a breakpoint to app.js or a route
- In Code attach the debugger
This works, assuming you have a gulp process
- In terminal run
gulp serve-dev --debug
- In Code remove all breakpoints
- In Code add a breakpoint to app.js or a route
- In Code attach the debugger
This does not work, sometimes
- In terminal run
gulp serve-dev --debug
- In Code add a breakpoint to app.js or a route
- In Code attach the debugger
Why sometimes? The best I can tell is that that the breakpoints sometimes get funky. Sometimes they work fine, and other times I have to remove them and re-add them before attaching the debugger.