launch.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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": "Before Debug",
  10. "configurations": ["Debug Main Process", "Debug Renderer Process"],
  11. "presentation": {
  12. "hidden": false,
  13. "group": "",
  14. "order": 1
  15. },
  16. "stopAll": true
  17. }
  18. ],
  19. "configurations": [
  20. {
  21. "name": "Debug Main Process",
  22. "type": "node",
  23. "request": "launch",
  24. "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
  25. "windows": {
  26. "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
  27. },
  28. "runtimeArgs": ["--no-sandbox", "--remote-debugging-port=9229", "."],
  29. "envFile": "${workspaceFolder}/.vscode/.debug.env",
  30. "console": "integratedTerminal"
  31. },
  32. {
  33. "name": "Debug Renderer Process",
  34. "port": 9229,
  35. "request": "attach",
  36. "type": "chrome",
  37. "timeout": 60000,
  38. "skipFiles": [
  39. "<node_internals>/**",
  40. "${workspaceRoot}/node_modules/**",
  41. "${workspaceRoot}/dist-electron/**",
  42. // Skip files in host(VITE_DEV_SERVER_URL)
  43. "http://127.0.0.1:7777/**"
  44. ]
  45. }
  46. ]
  47. }