launch.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "version": "0.2.0",
  3. "configurations": [
  4. {
  5. "type": "node",
  6. "request": "launch",
  7. "name": "Debug: Current File",
  8. "skipFiles": [
  9. "<node_internals>/**"
  10. ],
  11. "console": "integratedTerminal",
  12. "cwd": "${fileDirname}",
  13. "runtimeExecutable": "node",
  14. "runtimeArgs": [
  15. "-r", "@swc-node/register",
  16. "${file}"
  17. ]
  18. },
  19. {
  20. "type": "node",
  21. "request": "launch",
  22. "name": "Debug: Current File with Vitest",
  23. "autoAttachChildProcesses": true,
  24. "skipFiles": ["<node_internals>/**", "**/node_modules/**"],
  25. "program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
  26. "args": ["run", "${relativeFile}"],
  27. "smartStep": true,
  28. "console": "integratedTerminal"
  29. },
  30. {
  31. "type": "pwa-node",
  32. "request": "attach",
  33. "name": "Debug: Attach Debugger to Server",
  34. "port": 9229,
  35. "cwd": "${workspaceFolder}/apps/app",
  36. "sourceMapPathOverrides": {
  37. "webpack://@growi/app/*": "${workspaceFolder}/apps/app/*"
  38. }
  39. },
  40. {
  41. "type": "pwa-node",
  42. "request": "launch",
  43. "name": "Debug: Server",
  44. "cwd": "${workspaceFolder}/apps/app",
  45. "runtimeExecutable": "yarn",
  46. "runtimeArgs": [
  47. "dev"
  48. ],
  49. "skipFiles": [
  50. "<node_internals>/**"
  51. ],
  52. "restart": true,
  53. "console": "integratedTerminal",
  54. "internalConsoleOptions": "neverOpen",
  55. "sourceMapPathOverrides": {
  56. "webpack://@growi/app/*": "${workspaceFolder}/apps/app/*"
  57. }
  58. },
  59. {
  60. "type": "pwa-chrome",
  61. "request": "launch",
  62. "name": "Debug: Chrome",
  63. "sourceMaps": true,
  64. "sourceMapPathOverrides": {
  65. "webpack://_N_E/*": "${workspaceFolder}/apps/app/*"
  66. },
  67. "webRoot": "${workspaceFolder}/apps/app/public",
  68. "url": "http://localhost:3000"
  69. },
  70. {
  71. "type": "firefox",
  72. "request": "launch",
  73. "name": "Debug: Firefox",
  74. "reAttach": true,
  75. "webRoot": "${workspaceFolder}/apps/app/public",
  76. "url": "http://localhost:3000",
  77. "pathMappings": [
  78. {
  79. "url": "webpack://_n_e/src",
  80. "path": "${workspaceFolder}/apps/app/src"
  81. },
  82. {
  83. "url": "webpack://_n_e/core",
  84. "path": "${workspaceFolder}/packages/core"
  85. },
  86. {
  87. "url": "webpack://_n_e/remark-lsx",
  88. "path": "${workspaceFolder}/packages/remark-lsx"
  89. },
  90. {
  91. "url": "webpack://_n_e/slack",
  92. "path": "${workspaceFolder}/apps/app/slack"
  93. },
  94. {
  95. "url": "webpack://_n_e/ui",
  96. "path": "${workspaceFolder}/packages/ui"
  97. },
  98. {
  99. "url": "http://localhost:3000",
  100. "path": "${workspaceFolder}/apps/app/public"
  101. }
  102. ]
  103. }
  104. ]
  105. }