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",
"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_internals>/**",
"**/node_modules/**",
"**/@vite/client/**"
]
},
]
}