2
0

launch.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "Electron View",
  6. "type": "chrome",
  7. "request": "launch",
  8. "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
  9. "windows": {
  10. "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
  11. },
  12. "runtimeArgs": [
  13. "${workspaceRoot}",
  14. "--enable-logging",
  15. "--remote-debugging-port=9222"
  16. ],
  17. "webRoot": "${workspaceRoot}"
  18. },
  19. {
  20. "name": "Electron App",
  21. "type": "node",
  22. "request": "launch",
  23. "program": "${workspaceFolder}/source/app.js",
  24. "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron",
  25. "windows": {
  26. "runtimeExecutable": "${workspaceRoot}/node_modules/.bin/electron.cmd"
  27. }
  28. },
  29. {
  30. "name": "Browser",
  31. "type": "debugpy",
  32. "request": "launch",
  33. "program": "${workspaceFolder}/package.py",
  34. "args": [ "build", "start" ],
  35. "justMyCode": true,
  36. "pathMappings": [
  37. {
  38. "localRoot": "${workspaceFolder}/source",
  39. "remoteRoot": "${workspaceFolder}/dist/pypi/netron",
  40. }
  41. ],
  42. "serverReadyAction": {
  43. "action": "debugWithChrome",
  44. "pattern": "Serving .*at http://localhost:([0-9]+)",
  45. "uriFormat": "http://localhost:%s",
  46. "webRoot": "${workspaceFolder}/source",
  47. },
  48. },
  49. {
  50. "name": "Test Models",
  51. "type": "node",
  52. "request": "launch",
  53. "program": "${workspaceFolder}/test/models.js",
  54. "args": [ "tag:validation" ],
  55. "console": "integratedTerminal",
  56. },
  57. {
  58. "name": "Test Backend",
  59. "type": "debugpy",
  60. "request": "launch",
  61. "program": "${workspaceFolder}/test/backend.py",
  62. "args": [],
  63. "console": "integratedTerminal",
  64. "justMyCode": true,
  65. "serverReadyAction": {
  66. "action": "debugWithChrome",
  67. "pattern": "Serving .*at http://localhost:([0-9]+)",
  68. "uriFormat": "http://localhost:%s",
  69. "webRoot": "${workspaceFolder}/source",
  70. },
  71. },
  72. {
  73. "name": "Tools Python",
  74. "type": "debugpy",
  75. "request": "launch",
  76. "program": "${file}",
  77. "args": [],
  78. "console": "integratedTerminal",
  79. "justMyCode": true
  80. },
  81. {
  82. "name": "Package.js",
  83. "type": "node",
  84. "request": "launch",
  85. "program": "${workspaceFolder}/package.js",
  86. "args": [],
  87. "console": "integratedTerminal",
  88. },
  89. ]
  90. }