Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I run gulp-nodemon in debug mode?

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

like image 259
linuxdan Avatar asked Sep 23 '15 23:09

linuxdan


People also ask

How do I debug a gulp task?

If you are using webstorm you can right click the task in the gulp panel and select debug.


1 Answers

Use nodeArgs option:

var nodemon = require('gulp-nodemon'),
nodemon({
    script: 'src/server.js',
    nodeArgs: ['--debug']
});
like image 91
raina77ow Avatar answered Oct 08 '22 14:10

raina77ow