配置Visual Studio Code以进行Power BI应用开发

时间:2019-01-04 16:50:10

标签: json visual-studio powerbi launch

我正在使用Visual Studio Code(VSCode)开发Power BI应用程序,但出现与launch.json相关的错误。

错误消息包括:

Cannot connect to runtime process, timeout after 10000ms - (reason: Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:9222)

Cannot launch program ...setting 'outFiles' attribute might help.
我尝试过的

launch.json配置包括:

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "program": "${file}"
        }
    ]
}

{
    "version": "0.1.0",
    "configurations": [
        {
            "name": "Debugger",
            "type": "chrome",
            "request": "attach",
            "port": 9222,
            "sourceMaps": true,
            "webRoot": "${cwd}/"
        }
    ]
}

我是VSCode的新手。在调试Javascript代码时,我通常使用Firefox控制台视图进行对象检查,评估表达式等。我希望VSCode调试控制台的工作方式类似于Firefox。

如何为系统配置launch.json? 如何使VSCode调试器正常工作?

0 个答案:

没有答案