Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node v5 breaks Webstorm's debugger

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.

like image 582
Vee6 Avatar asked Nov 04 '15 07:11

Vee6


3 Answers

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.

like image 69
user5523527 Avatar answered Nov 18 '22 23:11

user5523527


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
like image 6
Oleksandr Knyga Avatar answered Nov 19 '22 00:11

Oleksandr Knyga


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

like image 5
Dennis Ushakov Avatar answered Nov 19 '22 00:11

Dennis Ushakov