Node has released its (not so) stable v5 version some days ago. I notice that when I try to run a node project with Webstorm with the debugger it I get the following exception on startup:
Cannot stop on breakpoint due to internal error:
org.jetbrains.v8.V8CommandProcessor$1: TypeError: f is not a function
at Function.t.getScopes (eval at undefined, :217:15)
at t.describeFrame (eval at undefined, :213:33)
at t.getFrames (eval at undefined, :114:89)
at DebugCommandProcessor.r.processDebugJSONRequest (eval at undefined, :348:15)
I don't have other environments to reproduce this error. The programs continues to run but it doesn't stop on breakpoints anymore. Any idea for a fix for this?
UPDATE: I have opened a ticket with Jetbrains and they said they will fix this with a patch asap.
This issue is described here and the workaround is described here
Basically add Workaround: Specify jvm system property:
-Dnodejs.debugger.use.jb.support=false
in your idea.vmoptions file.
In my case I copied /Applications/WebStorm.app/Contents/bin/webstorm.vmoptions
to /Users/somename/Library/Preferences/WebStorm10/webstorm.vmoptions
and added -Dnodejs.debugger.use.jb.support=false
line.
Result file was:
-Xms128m
-Xmx1000m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=225m
-XX:+UseCompressedOops
-Dnodejs.debugger.use.jb.support=false
Please update to WebStorm 11.0.1, it works with Node.js 5 just fine
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With