update vscode launch configuration for debugging

This commit is contained in:
2026-06-11 14:49:41 +02:00
parent d8699ee4b5
commit eec4170c91
2 changed files with 25 additions and 7 deletions
+23 -5
View File
@@ -5,12 +5,13 @@
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "Debug Scelta Carriere in browser",
"cwd": "${workspaceFolder}/scelta-carriera", "name": "Scelta Carriere (BROWSER)",
"cwd": "${workspaceFolder}/react/scelta-carriera",
"env": { "env": {
"NO_COLOR": "1" "NO_COLOR": "1"
}, },
"outputCapture": "std", "outputCapture": "console",
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"runtimeExecutable": "npm", "runtimeExecutable": "npm",
@@ -21,11 +22,28 @@
"**/@vite/client/**" "**/@vite/client/**"
], ],
"serverReadyAction": { "serverReadyAction": {
"action": "debugWithEdge", "action": "debugWithChrome",
"pattern": "Local:\\s+http://localhost:([0-9]+)/", "pattern": "Local:\\s+http://localhost:([0-9]+)/",
"uriFormat": "http://localhost:%s", "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_internals>/**",
"**/node_modules/**",
"**/@vite/client/**"
]
},
] ]
} }
+2 -2
View File
@@ -2,12 +2,12 @@
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "Start Vite App (scelta-carriera)", "label": "Start scelta-carriera (Vite App)",
"type": "shell", "type": "shell",
"command": "npm run dev", "command": "npm run dev",
"isBackground": true, "isBackground": true,
"options": { "options": {
"cwd": "${workspaceFolder}/scelta-carriera", "cwd": "${workspaceFolder}/react/scelta-carriera",
"env": { "env": {
"NO_COLOR": "true" "NO_COLOR": "true"
} }