I am trying to debug grunt with Intellij (IDEA). Technologies: NodeJS, express, AngularJS.
Problem: The debugger does not stop at breakpoints.
I will be glad to hear your thoughts.
configuration tab:
Node interpreter: C: \ Program Files \ nodejs \ node.exe
Javscript file: C: \ Users [user] \ AppData \ Roaming \ npm \ node_modules \ grunt-cli \ bin \ grunt
Tab "Browser / Live View":
http:
and here is Gruntfile.js:
var path = require('path');
module.exports = function (grunt) {
grunt.initConfig({
express: {
dev: {
options: {
script: 'server.js'
}
},
},
watch: {
html: {
files: [ '**/*.html'],
options: {
livereload: true
}
},
server: {
files: [ 'server.js'],
tasks: ['express:dev'],
options: {
livereload: true,
spawn: false
}
},
js: {
files: [ '**/*.js'],
options: {
livereload: true
}
}
},
open: {
express: {
path: 'http://localhost:3000'
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-express-server');
grunt.loadNpmTasks('grunt-open');
grunt.registerTask('default', ['express:dev', 'watch' ])
};
source
share