Intellij idea 调试Intellij Idea中gulp运行的mocha测试

Intellij idea 调试Intellij Idea中gulp运行的mocha测试,intellij-idea,mocha.js,gulp,intellij-13,Intellij Idea,Mocha.js,Gulp,Intellij 13,我的gulpfile.js中有以下配置: gulp.task('spec', function() { gulp.src('spec/runner.html') .pipe(mocha({reporter: 'dot'})) }) 在IntelliJ Idea中运行nodejs时,IDE不会加载spec/runner.html导入的脚本文件,因此会忽略断点。有解决方案吗?在您的运行配置选项中,为“JavaScript文件”输入以下值: node_modules/gulp/bin/g

我的gulpfile.js中有以下配置:

gulp.task('spec', function() {
  gulp.src('spec/runner.html')
    .pipe(mocha({reporter: 'dot'}))
})

在IntelliJ Idea中运行nodejs时,IDE不会加载spec/runner.html导入的脚本文件,因此会忽略断点。有解决方案吗?

在您的运行配置选项中,为“JavaScript文件”输入以下值:

node_modules/gulp/bin/gulp.js
然后将您的吞咽参数放入“应用程序参数”中

WebStorm 9 EAP有本机版本,但在最终版本之前,此版本仍然有效