launch.json 915 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "Debug Main Process",
  6. "type": "node",
  7. "request": "launch",
  8. "cwd": "${workspaceRoot}",
  9. "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite",
  10. "windows": {
  11. "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron-vite.cmd"
  12. },
  13. "runtimeArgs": ["--sourcemap"],
  14. "env": {
  15. "REMOTE_DEBUGGING_PORT": "9222"
  16. }
  17. },
  18. {
  19. "name": "Debug Renderer Process",
  20. "port": 9222,
  21. "request": "attach",
  22. "type": "chrome",
  23. "webRoot": "${workspaceFolder}/src/renderer",
  24. "timeout": 60000,
  25. "presentation": {
  26. "hidden": true
  27. }
  28. }
  29. ],
  30. "compounds": [
  31. {
  32. "name": "Debug All",
  33. "configurations": ["Debug Main Process", "Debug Renderer Process"],
  34. "presentation": {
  35. "order": 1
  36. }
  37. }
  38. ]
  39. }