launch.json 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. // 使用 IntelliSense 了解相关属性。
  3. // 悬停以查看现有属性的描述。
  4. // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
  5. "version": "0.2.0",
  6. "configurations": [
  7. {
  8. "type": "node",
  9. "request": "launch",
  10. "name": "启动程序",
  11. "skipFiles": ["<node_internals>/**"],
  12. "program": "${file}"
  13. },
  14. {
  15. "name": "Electron: Main",
  16. "type": "node",
  17. "request": "launch",
  18. // "protocol": "inspector",
  19. "runtimeExecutable": "${workspaceRoot}/Sample/node_modules/.bin/electron",
  20. "windows": {
  21. "runtimeExecutable": "${workspaceRoot}/Sample/node_modules/.bin/electron.cmd"
  22. },
  23. "preLaunchTask": "electron-debug",
  24. "args": ["--remote-debugging-port=9223", "./dist_electron"],
  25. "outFiles": ["${workspaceFolder}/Sample/dist_electron/**/*.js"],
  26. "cwd": "${workspaceFolder}/Sample"
  27. },
  28. {
  29. "name": "Electron: Renderer",
  30. "type": "chrome",
  31. "request": "attach",
  32. "port": 9223,
  33. "urlFilter": "http://localhost:*",
  34. "timeout": 30000,
  35. "webRoot": "${workspaceFolder}/Sample/src",
  36. "sourceMapPathOverrides": {
  37. "webpack:///./Sample/src/*": "${webRoot}/*"
  38. }
  39. }
  40. ],
  41. "compounds": [
  42. {
  43. "name": "Electron: All",
  44. "configurations": ["Electron: Main", "Electron: Renderer"]
  45. }
  46. ]
  47. }