vscode调试Electron的lanuch.json

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Debug Main Process",
      "type": "node",
      "request": "launch",
      "cwd": "${workspaceFolder}",
      "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
      "windows": {
        "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
      },
      "args" : ["."]
    }
  ]
}

来源:https://www.electronjs.org/docs/tutorial/debugging-main-process-vscode

posted @ 2020-09-01 09:13  Black323  阅读(267)  评论(0编辑  收藏  举报