Visual Studio代码PhantomJS的未验证断点

时间:2018-04-11 14:11:07

标签: phantomjs javascript-debugger

我的问题是,VSC在调试PhantomJS文件时不会制动刹车点。 只有1个js文件。 !我确实重新安装了VSC,phantomjs等。但是没有运气。?!

我确实关注了tutorial on GitHub,也搜索了这个问题,但VSC仍然显示:

  

未验证的断点,断点被忽略,因为找不到生成的代码(源映射问题?)

我的launch.json看起来像这样:

{
"version": "0.2.0",
"configurations": [

    {
        "name": "Launch",
        "type": "phantomjs",
        "request": "launch",
        "file": "C:/Users/TSS/Desktop/PhantomJS/bin/hello.js",
        "webRoot": "C:/Users/TSS/Desktop/PhantomJS",
        "runtimeExecutable": "C:/Users/TSS/Desktop/PhantomJS/bin/phantomjs.exe",
        "runtimeArgs": [],
        "scriptArgs": [],
        "sourceMaps": true
    }
]

}

文件夹结构也非常简单:Folders structure

1 个答案:

答案 0 :(得分:0)

我刚刚降级到较旧的VSC版本并且它可以工作..出于某种原因!