节点几天前发布了它的(不那么)稳定的v5版本。我注意到,当我尝试与调试运行它与Webstorm一个节点项目中,我得到下面的异常在启动时:节点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)
我没有其他环境重现此错误。程序继续运行,但它不再停止在断点上。任何想法解决这个问题?
更新:我已经打开了Jetbrains的门票,他们表示他们将尽快修补这个补丁。在idea.vmoptions文件
-Dnodejs.debugger.use.jb.support=false
:
这个设置+ babel-node让调试器在平均规模的项目上花费时间启动 - 每次我想要重新运行它时,我的项目需要3分钟。但是调试器在这之后工作,所以它是一些东西,ta! – Salakar