Debug errors when debugging Node.js mocha tests
Whenever I try to debug a test my console will get flooded with the following error message several times:
ReferenceError: v8debug is not defined
at eval (eval at <anonymous> (C:\Program Files (x86)\JetBrains\WebStorm 2016.1.2\plugins\NodeJS\js\mocha-intellij\lib\mochaIntellijReporter.js:1:1), <anonymous>:44:21)
at eval (eval at <anonymous> (C:\Program Files (x86)\JetBrains\WebStorm 2016.1.2\plugins\NodeJS\js\mocha-intellij\lib\mochaIntellijReporter.js:1:1), <anonymous>:86:5)
at C:\Program Files (x86)\JetBrains\WebStorm 2016.1.2\plugins\NodeJS\js\mocha-intellij\lib\mochaIntellijReporter.js:1:1
at Object.exports.runInThisContext (vm.js:54:17)
at Module._compile (module.js:513:28)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Mocha.reporter (C:\Users\username\WebstormProjects\projectname\node_modules\mocha\lib\mocha.js:151:21)
at Object.<anonymous> (C:\Users\username\WebstormProjects\projectname\node_modules\mocha\bin\_mocha:208:7)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Timeout.Module.runMain [as _onTimeout] (module.js:575:10)
at tryOnTimeout (timers.js:224:11)
at Timer.listOnTimeout (timers.js:198:5)
Have anyone encountered this problem, and if so knows a fix?
Please sign in to leave a comment.
https://youtrack.jetbrains.com/issue/WEB-21717 is fixed in 2016.2. For now you can either downgrade Node.js or use a workaround from https://youtrack.jetbrains.com/issue/WEB-21717#comment=27-1443221
@Elena_Pogorelova I had Ws 2016.2 and also updated to .3 and I'm still experiencing this problem. I saw there's a workaround for this, but according to you it should be fixed, as I'm using the most updated Ws version.
You must be using WebStorm 2016.1.2, not 2016.2. The latter hasn't been released yet. You can try the EAP build available at https://confluence.jetbrains.com/display/WI/WebStorm+EAP