首页 > webstrom debug nodejs出错

webstrom debug nodejs出错

页面代码

function a(){
    console.log(2)
}
function b(){
    a();
    console.log(1)
}
b()

错误提示

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 (f:\cjg\WebstormProjects\1122\sk.js:1:11), :217:15) at t.describeFrame (eval at (f:\cjg\WebstormProjects\1122\sk.js:1:11), :213:33) at t.getFrames (eval at (f:\cjg\WebstormProjects\1122\sk.js:1:11), :114:89) at DebugCommandProcessor.r.processDebugJSONRequest (eval at (f:\cjg\WebstormProjects\1122\sk.js:1:11), :348:15) at Object. (f:\cjg\WebstormProjects\1122\sk.js:8:1) at Module._compile (module.js:425:26) at Object.Module._extensions..js (module.js:432:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:311:12) at Module.runMain [as _onTimeout] (module.js:457:10)


用WTIFS的方法可以debug了。不能debug应该是因为升级了node的版本,我升级node到5.4.1就不能debug了。新版本的node用的是io.js。
也可以升级到最新版webstorm解决debug问题,不过我没试过


webstorm11?
I meet this fuxxxking problem too..


IDE_HOME\bin\<product>bits.vmoptions

加入这句:
-Dnodejs.debugger.use.jb.support=false


升级后好了……


升级吧 版本太低了

【热门文章】
【热门文章】