28

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.

4 Answers 4

33

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.

1
  • 2
    This setting + babel-node makes the debugger take ages to startup on an average sized project - 3 mins for my project, every time i want to re-run it. But the debugger works after this, so it's something, ta!
    – Salakar
    Nov 6, 2015 at 12:36
6

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
1
5

Please update to WebStorm 11.0.1, it works with Node.js 5 just fine

2
  • I've update to WebStorm 11.0.1 but I still have the problem, any ideas?
    – Ido Ran
    Dec 2, 2015 at 8:39
  • @IdoRan did you try setting -Dnodejs.debugger.use.jb.support=false in your idea.vmoptions file?
    – kevin628
    Dec 9, 2015 at 15:02
0

Use 6.0.0 version, Its working fine there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.