Reputation: 1711
Even in an extremely simple setting, I'm unable to get any breakpoints in my code to hit. See the attached screenshot. After hitting 'Debug "main.js"', the execution is never interrupted.
Upvotes: 2
Views: 268
Reputation: 165148
Since you are using Node v7.x ... the solution for now is:
From this official comment:
Are you using Node 7.x? It's a known issue unfortunately, see https://youtrack.jetbrains.com/issue/WEB-24629. Hidden option for turning dev tools protocol support off (
js.debugger.node.use.inspect=false
) will be included in next 2016.3 update - see https://youtrack.jetbrains.com/issue/WEB-24629#comment=27-1809582.For now the only workaround is downgrading Node.js to 6.x :( Full Node 7 support (using v8 inspector) will be available in 2017.1
You may also try latest EAP build of 2017.1 -- https://confluence.jetbrains.com/display/WI/WebStorm+EAP -- it may have that fix already available (sorry, not using NodeJS myself so cannot confirm it).
Upvotes: 1