From eec4170c916b64b744d8ab15dcd2bc1001c667ac Mon Sep 17 00:00:00 2001 From: Pier-Paolo Mammi Date: Thu, 11 Jun 2026 14:49:41 +0200 Subject: [PATCH] update vscode launch configuration for debugging --- .vscode/launch.json | 28 +++++++++++++++++++++++----- .vscode/tasks.json | 4 ++-- 2 files changed, 25 insertions(+), 7 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 5124266..815911f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,12 +5,13 @@ "version": "0.2.0", "configurations": [ { - "name": "Debug Scelta Carriere in browser", - "cwd": "${workspaceFolder}/scelta-carriera", + + "name": "Scelta Carriere (BROWSER)", + "cwd": "${workspaceFolder}/react/scelta-carriera", "env": { "NO_COLOR": "1" }, - "outputCapture": "std", + "outputCapture": "console", "type": "node", "request": "launch", "runtimeExecutable": "npm", @@ -21,11 +22,28 @@ "**/@vite/client/**" ], "serverReadyAction": { - "action": "debugWithEdge", + "action": "debugWithChrome", "pattern": "Local:\\s+http://localhost:([0-9]+)/", "uriFormat": "http://localhost:%s", - "webRoot": "${workspaceFolder}/scelta-carriera/src" + "webRoot": "${workspaceFolder}/react/scelta-carriera/src" }, }, + { + "name": "Scelta Carriere (DEBUG ONLY)", + "cwd": "${workspaceFolder}/react/scelta-carriera", + "env": { + "NO_COLOR": "1" + }, + "outputCapture": "console", + "type": "node", + "request": "launch", + "runtimeExecutable": "npm", + "runtimeArgs": ["run", "dev"], + "skipFiles": [ + "/**", + "**/node_modules/**", + "**/@vite/client/**" + ] + }, ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 71dba19..9c7889e 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,12 +2,12 @@ "version": "2.0.0", "tasks": [ { - "label": "Start Vite App (scelta-carriera)", + "label": "Start scelta-carriera (Vite App)", "type": "shell", "command": "npm run dev", "isBackground": true, "options": { - "cwd": "${workspaceFolder}/scelta-carriera", + "cwd": "${workspaceFolder}/react/scelta-carriera", "env": { "NO_COLOR": "true" }