title: Debugging grunt with Intellij
body: <p>I'm trying to debug grunt with Intellij (IDEA).
  The technologies are: NodeJS, express, AngularJS.</p>
  
  <p>The problem:
  Debugger does not stop on breakpoints.</p>
  
  <p>I'll be happy to hear your thoughts.</p>
  
  <p>configuration tab:<br>
  Node interpreter: C:\Program Files\nodejs\node.exe<br>
  Javscript file: C:\Users[user]\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt</p>
  
  <p>Browser / Live Edit tab:<br></p>
  
  <pre><code>http://localhost:3000/
  </code></pre>
  
  <p>and here is the Gruntfile.js:</p>
  
  <pre><code>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 // Without this option specified express won't be reloaded
              }
          },
          js: {
              files: [ '**/*.js'],
              options: {
                  livereload: true
              }
          }
      },
      open: {
          express: {
              // Gets the port from the connect configuration
              path: 'http://localhost:3000'
          }
      }
  
  });
  
  grunt.loadNpmTasks('grunt-contrib-watch');
  grunt.loadNpmTasks('grunt-express-server');
  grunt.loadNpmTasks('grunt-open');
  
  grunt.registerTask('default', ['express:dev', 'watch' ])
  </code></pre>
  
  <p>};</p>