launch.json 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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": "Python Server",
  31. "type": "python",
  32. "request": "launch",
  33. "program": "${workspaceFolder}/publish/python.py",
  34. "justMyCode": true,
  35. "args": [
  36. "build",
  37. "start"
  38. ],
  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. "console": "integratedTerminal",
  58. },
  59. {
  60. "name": "Test Backend",
  61. "type": "python",
  62. "request": "launch",
  63. "program": "${workspaceFolder}/test/backend.py",
  64. "console": "integratedTerminal",
  65. "justMyCode": false,
  66. "serverReadyAction": {
  67. "action": "debugWithChrome",
  68. "pattern": "Serving .*at http://localhost:([0-9]+)",
  69. "uriFormat": "http://localhost:%s",
  70. "webRoot": "${workspaceFolder}/source",
  71. },
  72. },
  73. {
  74. "name": "Tools Python",
  75. "type": "python",
  76. "request": "launch",
  77. "program": "${file}",
  78. "console": "integratedTerminal",
  79. "justMyCode": false
  80. }
  81. ]
  82. }