본문 바로가기

카테고리 없음

[기타] electron 도 debug 가 가능?

728x90
반응형



electron 도 debug 가 가능?



2. 다음 설정으로 .vscode/launch.json 파일 추가하기:

{
  "version": "0.2.0",
  "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" : ["."],
      "outputCapture": "std"
    }
  ]
}




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

반응형