{
    "version": "0.2.0",
    "configurations": [
      {
        "type": "pwa-node",
        "request": "attach",
        "name": "Debug: Attach Debugger to Server",
        "port": 9229,
        "cwd": "${workspaceFolder}/packages/app",
        "sourceMapPathOverrides": {
          "webpack://@growi/app/*": "${workspaceFolder}/packages/app/*"
        }
      },
      {
        "type": "pwa-node",
        "request": "launch",
        "name": "Debug: Current File",
        "skipFiles": [
          "<node_internals>/**"
        ],
        "console": "integratedTerminal",
        "cwd": "${fileDirname}",
        "runtimeExecutable": "yarn",
        "runtimeArgs": [
          "ts-node",
          "${file}"
        ]
      },
      {
        "type": "pwa-node",
        "request": "launch",
        "name": "Debug: Server",
        "cwd": "${workspaceFolder}/packages/app",
        "runtimeExecutable": "yarn",
        "runtimeArgs": [
          "dev"
        ],
        "skipFiles": [
          "<node_internals>/**"
        ],
        "restart": true,
        "console": "integratedTerminal",
        "internalConsoleOptions": "neverOpen",
        "sourceMapPathOverrides": {
          "webpack://@growi/app/*": "${workspaceFolder}/packages/app/*"
        }
      },
      {
        "type": "pwa-chrome",
        "request": "launch",
        "name": "Debug: Chrome",
        "sourceMaps": true,
        "sourceMapPathOverrides": {
          "webpack://_N_E/*": "${workspaceFolder}/packages/app/*"
        },
        "webRoot": "${workspaceFolder}/packages/app/public",
        "url": "http://localhost:3000"
      },
      {
        "type": "firefox",
        "request": "launch",
        "name": "Debug: Firefox",
        "reAttach": true,
        "webRoot": "${workspaceFolder}/packages/app/public",
        "url": "http://localhost:3000",
        "pathMappings": [
          {
            "url": "webpack://_n_e/src",
            "path": "${workspaceFolder}/packages/app/src"
          },
          {
            "url": "webpack://_n_e/core",
            "path": "${workspaceFolder}/packages/core"
          },
          {
            "url": "webpack://_n_e/remark-lsx",
            "path": "${workspaceFolder}/packages/remark-lsx"
          },
          {
            "url": "webpack://_n_e/slack",
            "path": "${workspaceFolder}/packages/app/slack"
          },
          {
            "url": "webpack://_n_e/ui",
            "path": "${workspaceFolder}/packages/ui"
          },
          {
            "url": "http://localhost:3000",
            "path": "${workspaceFolder}/packages/app/public"
          }
        ]
      }
    ]
}
