如何在Visual Studio代码中调试Electron TypeScript应用程序
我下载了该示例,但在Visual Studio代码中调试失败,例如设置了断点。默认的如何在Visual Studio代码中调试Electron TypeScript应用程序,typescript,visual-studio-code,electron,Typescript,Visual Studio Code,Electron,我下载了该示例,但在Visual Studio代码中调试失败,例如设置了断点。默认的launch.jsonVS-code为Electron应用程序创建的代码无效。他们网页上给出的例子也不起作用 { "version": "0.2.0", "configurations": [ { "name": "Debug Main Process", "ty
launch.json
VS-code为Electron应用程序创建的代码无效。他们网页上给出的例子也不起作用
{
"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" : ["."],
"outputCapture": "std"
}
]
}
例如,为什么这个示例没有--remote debuging port=9223
参数?这是示例中给定的packages.json
"scripts": {
"build": "tsc",
"watch": "tsc -w",
"lint": "tslint -c tslint.json -p tsconfig.json",
"start": "npm run build && electron ./dist/main.js"
},
...
有人能解释一下为什么这个工作流程如此混乱吗?我错过了什么