launch.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "name": "Desktop 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. "osx": {
  13. "runtimeExecutable": "${workspaceFolder}/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron"
  14. },
  15. "runtimeArgs": [
  16. "${workspaceRoot}",
  17. "--enable-logging",
  18. "--remote-debugging-port=9222"
  19. ],
  20. "webRoot": "${workspaceRoot}"
  21. },
  22. {
  23. "name": "Desktop App",
  24. "type": "node",
  25. "request": "launch",
  26. "program": "${workspaceFolder}/source/app.js",
  27. "runtimeExecutable": "electron",
  28. "osx": {
  29. "runtimeExecutable": "${workspaceFolder}/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron"
  30. }
  31. },
  32. {
  33. "name": "Browser",
  34. "type": "debugpy",
  35. "request": "launch",
  36. "program": "${workspaceFolder}/package.py",
  37. "args": [ "build", "start" ],
  38. "justMyCode": true,
  39. "pathMappings": [
  40. {
  41. "localRoot": "${workspaceFolder}/source",
  42. "remoteRoot": "${workspaceFolder}/dist/pypi/netron",
  43. }
  44. ],
  45. "serverReadyAction": {
  46. "action": "debugWithChrome",
  47. "pattern": "Serving .*at http://localhost:([0-9]+)",
  48. "uriFormat": "http://localhost:%s",
  49. "webRoot": "${workspaceFolder}/source",
  50. },
  51. },
  52. {
  53. "name": "Test Models",
  54. "type": "node",
  55. "request": "launch",
  56. "program": "${workspaceFolder}/test/models.js",
  57. "args": [ "tag:validation" ],
  58. "console": "integratedTerminal",
  59. },
  60. {
  61. "name": "Test Desktop",
  62. "type": "node",
  63. "request": "launch",
  64. "runtimeExecutable": "npm",
  65. "runtimeArgs": ["run", "test", "desktop"],
  66. "console": "integratedTerminal",
  67. },
  68. {
  69. "name": "Test Browser",
  70. "type": "node",
  71. "request": "launch",
  72. "runtimeExecutable": "npm",
  73. "runtimeArgs": ["run", "test", "browser"],
  74. "console": "integratedTerminal",
  75. },
  76. {
  77. "name": "Test Backend",
  78. "type": "debugpy",
  79. "request": "launch",
  80. "program": "${workspaceFolder}/test/backend.py",
  81. "args": [],
  82. "console": "integratedTerminal",
  83. "justMyCode": true,
  84. "serverReadyAction": {
  85. "action": "debugWithChrome",
  86. "pattern": "Serving .*at http://localhost:([0-9]+)",
  87. "uriFormat": "http://localhost:%s",
  88. "webRoot": "${workspaceFolder}/source",
  89. },
  90. },
  91. {
  92. "name": "Tools Python",
  93. "type": "debugpy",
  94. "request": "launch",
  95. "program": "${file}",
  96. "args": [],
  97. "console": "integratedTerminal",
  98. "justMyCode": true
  99. },
  100. {
  101. "name": "Tools JavaScript",
  102. "type": "node",
  103. "request": "launch",
  104. "program": "${file}",
  105. "args": [],
  106. "console": "integratedTerminal",
  107. }
  108. ]
  109. }