From c39d1f433af923bb679f46a9643a1db9b3e8c25c Mon Sep 17 00:00:00 2001 From: jangwoong Date: Thu, 8 Oct 2026 09:21:10 +0900 Subject: [PATCH] [common] vs code debug settings --- .vscode/launch.json | 130 ++++++++++++++++++++++++++++++++++++++---- .vscode/settings.json | 5 +- 2 files changed, 123 insertions(+), 12 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index ea1cd8dc1..ab13e81ef 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,7 +1,5 @@ { - // IntelliSense를 사용하여 가능한 특성에 대해 알아보세요. - // 기존 특성에 대한 설명을 보려면 가리킵니다. - // 자세한 내용을 보려면 https://go.microsoft.com/fwlink/?linkid=830387을(를) 방문하세요. + "version": "0.2.0", "configurations": [ { @@ -14,13 +12,91 @@ "dev:as" ], "skipFiles": [ - "/**" + "/**", + "**/node_modules/**" + ], + "resolveSourceMapLocations": [ + "${workspaceFolder}/**", + "!**/node_modules/**" ], "cwd": "${workspaceFolder}", "console": "integratedTerminal", "sourceMaps": true, "env": { - "NODE_OPTIONS": "--inspect" + "NODE_OPTIONS": "--inspect --max-old-space-size=8192" + } + }, + { + "type": "node-terminal", + "request": "launch", + "name": "dev:as 서버 컴포넌트 디버그 (node-terminal)", + "command": "pnpm --filter as dev", + "cwd": "${workspaceFolder}" + }, + { + "type": "node-terminal", + "request": "launch", + "name": "dev:as 통합 디버그 (Server + Client)", + "command": "pnpm --filter as dev", + "cwd": "${workspaceFolder}", + "serverReadyAction": { + "action": "debugWithChrome", + "pattern": "- Local:\\s+(https?://.+)", + "uriFormat": "%s", + "webRoot": "${workspaceFolder}/apps/as" + } + }, + { + "type": "node", + "request": "launch", + "name": "Playwright: 현재 활성화된 테스트 디버그", + "runtimeExecutable": "pnpm", + "runtimeArgs": [ + "--filter", + "cs", + "exec", + "playwright", + "test", + "${relativeFile}" + ], + "cwd": "${workspaceFolder}", + "console": "integratedTerminal", + "skipFiles": [ + "/**", + "**/node_modules/**" + ] + }, + { + "type": "node", + "request": "launch", + "name": "Playwright: cs 로그인 테스트 디버그", + "runtimeExecutable": "pnpm", + "runtimeArgs": [ + "--filter", + "cs", + "exec", + "playwright", + "test", + "tests/login.spec.ts" + ], + "cwd": "${workspaceFolder}", + "console": "integratedTerminal", + "skipFiles": [ + "/**", + "**/node_modules/**" + ] + }, + { + "type": "node-terminal", + "request": "launch", + "name": "dev:cs 통합 디버그 (Server + Client)", + "command": "pnpm --filter cs dev", + "cwd": "${workspaceFolder}", + "serverReadyAction": { + "action": "debugWithChrome", + "pattern": "- Local:\\s+(https?://.+)", + "uriFormat": "%s", + "webRoot": "${workspaceFolder}/apps/cs" } }, { @@ -33,13 +109,18 @@ "dev:cs" ], "skipFiles": [ - "/**" + "/**", + "**/node_modules/**" + ], + "resolveSourceMapLocations": [ + "${workspaceFolder}/**", + "!**/node_modules/**" ], "cwd": "${workspaceFolder}", "console": "integratedTerminal", "sourceMaps": true, "env": { - "NODE_OPTIONS": "--inspect" + "NODE_OPTIONS": "--inspect --max-old-space-size=8192" } }, { @@ -49,7 +130,8 @@ "port": 9229, "restart": true, "skipFiles": [ - "/**" + "/**", + "**/node_modules/**" ], "sourceMaps": true, "resolveSourceMapLocations": [ @@ -63,7 +145,15 @@ "name": "dev:cs 클라이언트 디버그 (Chrome)", "url": "http://localhost:3000", "webRoot": "${workspaceFolder}/apps/cs", - "sourceMaps": true + "skipFiles": [ + "/**", + "**/node_modules/**" + ], + "sourceMaps": true, + "resolveSourceMapLocations": [ + "${workspaceFolder}/apps/cs/**", + "!**/node_modules/**" + ] }, { "type": "node", @@ -75,13 +165,31 @@ "dev:st" ], "skipFiles": [ - "/**" + "/**", + "**/node_modules/**" + ], + "resolveSourceMapLocations": [ + "${workspaceFolder}/**", + "!**/node_modules/**" ], "cwd": "${workspaceFolder}", "console": "integratedTerminal", "sourceMaps": true, "env": { - "NODE_OPTIONS": "--inspect" + "NODE_OPTIONS": "--inspect --max-old-space-size=8192" + } + }, + { + "type": "node-terminal", + "request": "launch", + "name": "dev:st 통합 디버그 (Server + Client)", + "command": "pnpm --filter st dev", + "cwd": "${workspaceFolder}", + "serverReadyAction": { + "action": "debugWithChrome", + "pattern": "- Local:\\s+(https?://.+)", + "uriFormat": "%s", + "webRoot": "${workspaceFolder}/apps/st" } } ] diff --git a/.vscode/settings.json b/.vscode/settings.json index f60bf453a..5b82bf5e9 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,8 @@ { "chat.tools.terminal.autoApprove": { "pnpm": true - } + }, + "playwright.configs": [ + "apps/cs/playwright.config.ts" + ] } \ No newline at end of file