使用vscode调试电子应用程序时,调试控制台输出错误?

时间:2018-10-27 01:40:04

标签: visual-studio-code electron

vscode中的调试控制台错误: enter image description here

我的电子应用程序可以快速启动,我只是为vscode添加了launch.js文件:

{
    "version": "0.2.0",
    "script": {
        "start": "chcp 65001 && node ."
    },
    "configurations": [
        {
            "name": "Debug Main Process",
            "type": "node",
            "request": "launch",
            "cwd": "${workspaceRoot}",

        "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
        "windows": {
            "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
        },
        "args": [
            "."
        ]
    }
]
}

环境是: enter image description here 谢谢!

0 个答案:

没有答案
相关问题