launch.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. "compounds": [
  7. {
  8. "name": "Debug App",
  9. "preLaunchTask": "start .debug.script.mjs",
  10. "configurations": [
  11. "Debug Main Process",
  12. "Debug Renderer Process"
  13. ],
  14. "presentation": {
  15. "hidden": false,
  16. "group": "",
  17. "order": 1
  18. },
  19. "stopAll": true
  20. }
  21. ],
  22. "configurations": [
  23. {
  24. "name": "Debug Main Process",
  25. "type": "pwa-node",
  26. "request": "launch",
  27. "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
  28. "windows": {
  29. "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
  30. },
  31. "runtimeArgs": [
  32. "--remote-debugging-port=9229",
  33. "${workspaceRoot}/dist/main/index.cjs"
  34. ],
  35. "envFile": "${workspaceFolder}/.vscode/.debug.env"
  36. },
  37. {
  38. "name": "Debug Renderer Process",
  39. "port": 9229,
  40. "request": "attach",
  41. "type": "pwa-chrome"
  42. },
  43. ]
  44. }