Node v5打破了Webstorm的调试器

Vee*_*ee6 28 debugging node.js webstorm

Node几天前发布了它的(不那么)稳定的v5版本.我注意到当我尝试使用带有调试器的Webstorm运行节点项目时,我在启动时遇到以下异常:

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)
Run Code Online (Sandbox Code Playgroud)

我没有其他环境来重现此错误.程序继续运行,但它不再停在断点上.有什么想法解决这个问题吗?

更新:我已经与Jetbrains开了一张票,他们说他们会尽快修补这个问题.

小智 33

说明这个问题在这里,并描述了解决办法在这里

基本上添加变通方法:指定jvm系统属性:

-Dnodejs.debugger.use.jb.support=false

在你的idea.vmoptions文件中.

  • 这个设置+ babel-node使得调试器在平均大小的项目上启动需要很长时间 - 我的项目需要3分钟,每次我想重新运行它.但调试器在此之后工作,所以这是一个东西,ta! (2认同)

Ole*_*yga 6

在我来说,我复制/Applications/WebStorm.app/Contents/bin/webstorm.vmoptions到/Users/somename/Library/Preferences/WebStorm10/webstorm.vmoptions并添加-Dnodejs.debugger.use.jb.support=false行.结果文件是:

-Xms128m
-Xmx1000m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=225m
-XX:+UseCompressedOops
-Dnodejs.debugger.use.jb.support=false
Run Code Online (Sandbox Code Playgroud)


小智 5

请更新到WebStorm 11.0.1,它适用于Node.js 5就好了