From 11b240b09ae561536ffa91ed45ef9c5efd24a975 Mon Sep 17 00:00:00 2001 From: Pier-Paolo Mammi Date: Mon, 25 May 2026 12:41:33 +0200 Subject: [PATCH] fix debug in vscode (hopefully) --- .vscode/launch.json | 45 +++++++++++++++++++++++---------------------- .vscode/tasks.json | 7 +++++-- 2 files changed, 28 insertions(+), 24 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 4900ffc..fde5018 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,24 +1,25 @@ { - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "pwa-chrome", - "request": "attach", - "name": "Debug Vite App (scelta-carriera)", - "url": "http://localhost:5173", - "webRoot": "${workspaceFolder}/scelta-carriera", - "preLaunchTask": "Start Vite App (scelta-carriera)", - "skipFiles": [ - "/**", - "**/node_modules/**", - "**/@vite/client/**" - ], - "sourceMapPathOverrides": { - "webpack:///src/*": "${webRoot}/*" - } - } - ] + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Debug Scelta Carriere in browser", + "request": "launch", + "runtimeExecutable": "npm", + "runtimeArgs": ["run", "dev"], + "cwd": "${workspaceFolder}/scelta-carriera", + "env": { + "NO_COLOR": "1" + }, + "type": "node", + "serverReadyAction": { + "action": "debugWithEdge", + "pattern": "Local:\\s+http://localhost:([0-9]+)/", + "uriFormat": "http://localhost:%s", + "webRoot": "${workspaceFolder}/scelta-carriera/src" + }, + }, + ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 22cc73f..71dba19 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -7,7 +7,10 @@ "command": "npm run dev", "isBackground": true, "options": { - "cwd": "${workspaceFolder}/scelta-carriera" + "cwd": "${workspaceFolder}/scelta-carriera", + "env": { + "NO_COLOR": "true" + } }, "problemMatcher": { "pattern": [ @@ -20,7 +23,7 @@ ], "background": { "activeOnStart": true, - "beginsPattern": "vite", + "beginsPattern": "VITE", "endsPattern": "ready in" } }