I have tried:
var nodemon = require('gulp-nodemon'),
nodemon({
script: 'src/server.js',
debug: true
});
However, the debug flag isn't getting passed along to node
If you are using webstorm you can right click the task in the gulp panel and select debug.
Use nodeArgs
option:
var nodemon = require('gulp-nodemon'),
nodemon({
script: 'src/server.js',
nodeArgs: ['--debug']
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With