launch.json 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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": "attach",
  22. "name": "Debug: Attach Debugger to Server",
  23. "port": 9229,
  24. "cwd": "${workspaceFolder}/apps/app",
  25. "sourceMapPathOverrides": {
  26. "webpack://@growi/app/*": "${workspaceFolder}/apps/app/*"
  27. }
  28. },
  29. {
  30. "type": "node",
  31. "request": "launch",
  32. "name": "Debug: Server",
  33. "cwd": "${workspaceFolder}/apps/app",
  34. "runtimeExecutable": "pnpm",
  35. "runtimeArgs": [
  36. "run",
  37. "dev"
  38. ],
  39. "skipFiles": [
  40. "<node_internals>/**"
  41. ],
  42. "restart": true,
  43. "console": "integratedTerminal",
  44. "internalConsoleOptions": "neverOpen",
  45. "sourceMapPathOverrides": {
  46. "webpack://@growi/app/*": "${workspaceFolder}/apps/app/*"
  47. }
  48. },
  49. {
  50. "type": "chrome",
  51. "request": "launch",
  52. "name": "Debug: Chrome",
  53. "sourceMaps": true,
  54. "sourceMapPathOverrides": {
  55. "webpack://_N_E/*": "${workspaceFolder}/apps/app/*"
  56. },
  57. "webRoot": "${workspaceFolder}/apps/app/public",
  58. "url": "http://localhost:3000"
  59. },
  60. {
  61. "type": "firefox",
  62. "request": "launch",
  63. "name": "Debug: Firefox",
  64. "reAttach": true,
  65. "webRoot": "${workspaceFolder}/apps/app/public",
  66. "url": "http://localhost:3000",
  67. "pathMappings": [
  68. {
  69. "url": "webpack://_n_e/src",
  70. "path": "${workspaceFolder}/apps/app/src"
  71. },
  72. {
  73. "url": "webpack://_n_e/core",
  74. "path": "${workspaceFolder}/packages/core"
  75. },
  76. {
  77. "url": "webpack://_n_e/remark-lsx",
  78. "path": "${workspaceFolder}/packages/remark-lsx"
  79. },
  80. {
  81. "url": "webpack://_n_e/slack",
  82. "path": "${workspaceFolder}/apps/app/slack"
  83. },
  84. {
  85. "url": "webpack://_n_e/ui",
  86. "path": "${workspaceFolder}/packages/ui"
  87. },
  88. {
  89. "url": "http://localhost:3000",
  90. "path": "${workspaceFolder}/apps/app/public"
  91. }
  92. ]
  93. }
  94. ]
  95. }