launch.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // {
  2. // // Use IntelliSense to learn about possible attributes.
  3. // // Hover to view descriptions of existing attributes.
  4. // // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  5. // "version": "0.2.0",
  6. // "configurations": [
  7. // {
  8. // "type": "node",
  9. // "request": "launch",
  10. // "name": "Launch Program",
  11. // "skipFiles": ["<node_internals>/**"],
  12. // "program": "${workspaceFolder}\\main.js",
  13. // "outFiles": ["${workspaceFolder}/**/*.js"]
  14. // }
  15. // ]
  16. // }
  17. {
  18. "version": "0.2.0",
  19. "configurations": [
  20. {
  21. "type": "node",
  22. "request": "launch",
  23. "name": "Electron: Main",
  24. "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron",
  25. "runtimeArgs": ["--remote-debugging-port=9223", "."],
  26. "windows": {
  27. "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron.cmd"
  28. }
  29. },
  30. {
  31. "name": "Electron: Renderer",
  32. "type": "chrome",
  33. "request": "attach",
  34. "port": 9223,
  35. "webRoot": "${workspaceFolder}",
  36. "timeout": 30000
  37. }
  38. ],
  39. "compounds": [
  40. {
  41. "name": "Electron: All",
  42. "configurations": ["Electron: Main", "Electron: Renderer"]
  43. }
  44. ]
  45. }