Node 几天前发布了它的(不是那么)稳定的 v5 版本。我注意到,当我尝试使用调试器使用 Webstorm 运行 Node 项目时,我在启动时收到以下异常:
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)
我没有其他环境可以重现此错误。程序继续运行,但不再在断点处停止。有什么办法可以解决这个问题吗?
更新:我已经向 Jetbrains 开了一张票,他们说他们会尽快用补丁解决这个问题。
最佳答案
基本上加 解决方法:指定 jvm 系统属性:
-Dnodejs.debugger.use.jb.support=false
在你的 idea.vmoptions 文件中。
关于node.js - Node v5 破坏了 Webstorm 的调试器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33515777/