Unable to debug node project (with babel transpiler ES6)


Hey there,

i have the following issue when debugging my node project (Note: i can 'Run' the project without problems) :

I am using Babel for my "analytics.js" file with ES6-script. Excerpt of my package.json:

"babel-core": "^6.4.5",
"babel-preset-es2015": "^6.3.13",

excerpt of my index.js:

var analytics = require('./analytics');

The project is just the default project created with intellij, those imports, the analytics file, and a .babelrc file for the preset. When i run the project babel is initialized and the request in my analytics file is processed and returns. When i debug my project it stops before the 2nd line of the index.js above. A console.log after requiring babel-core will be shown in the console but the execution freezes afterwards.

Using IntelliJ 14.1.6 Ultimate.

I would be really happy if anyone could give me a hint what to look for to make it work.

Comment actions Permalink

what is your Node.js version? Can you attach a project that shows up the issue?

Comment actions Permalink


Thanks for the response. A small version of the project is attached.


Debug mode was able to execute after around 30 minutes with the stub, run takes around 20-30 seconds.

node -v  => 0.12.2  (also installed the latest release, remained 0.12.2)

Comment actions Permalink

There is a known issue with io.js/node.js > v.0.11.0 - see https://github.com/nodejs/io.js/issues/877. It is fixed in Node v.4.*, but is back again in 5.* (it's not as slow as with 0.12, but still slower than 4.*) - see https://github.com/nodejs/node/issues/3875.


See https://youtrack.jetbrains.com/issue/WEB-16076#comment=27-981720 for a workaround

Comment actions Permalink

Thank you very much! I'll try it and report back!

edit: thx, now i can debug again! it is working

Comment actions Permalink

great, thanks for letting me know!


Just compared debugging time for your project with different Node versions:

v. 4.1.1 - 9 sec to load your application
v. 5.5 - 4 min to load "babel-preset-es2015" ('Hello from babel preset' logged), 1 more minute for loading './analytics'

io.js - still waiting... slow like a hell


Please sign in to leave a comment.