fix debug in vscode (hopefully)

This commit is contained in:
2026-05-25 12:41:33 +02:00
parent 5db8c6135e
commit 11b240b09a
2 changed files with 28 additions and 24 deletions
+23 -22
View File
@@ -1,24 +1,25 @@
{ {
// Use IntelliSense to learn about possible attributes. // Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes. // Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"type": "pwa-chrome", "name": "Debug Scelta Carriere in browser",
"request": "attach", "request": "launch",
"name": "Debug Vite App (scelta-carriera)", "runtimeExecutable": "npm",
"url": "http://localhost:5173", "runtimeArgs": ["run", "dev"],
"webRoot": "${workspaceFolder}/scelta-carriera", "cwd": "${workspaceFolder}/scelta-carriera",
"preLaunchTask": "Start Vite App (scelta-carriera)", "env": {
"skipFiles": [ "NO_COLOR": "1"
"<node_internals>/**", },
"**/node_modules/**", "type": "node",
"**/@vite/client/**" "serverReadyAction": {
], "action": "debugWithEdge",
"sourceMapPathOverrides": { "pattern": "Local:\\s+http://localhost:([0-9]+)/",
"webpack:///src/*": "${webRoot}/*" "uriFormat": "http://localhost:%s",
} "webRoot": "${workspaceFolder}/scelta-carriera/src"
} },
] },
]
} }
+5 -2
View File
@@ -7,7 +7,10 @@
"command": "npm run dev", "command": "npm run dev",
"isBackground": true, "isBackground": true,
"options": { "options": {
"cwd": "${workspaceFolder}/scelta-carriera" "cwd": "${workspaceFolder}/scelta-carriera",
"env": {
"NO_COLOR": "true"
}
}, },
"problemMatcher": { "problemMatcher": {
"pattern": [ "pattern": [
@@ -20,7 +23,7 @@
], ],
"background": { "background": {
"activeOnStart": true, "activeOnStart": true,
"beginsPattern": "vite", "beginsPattern": "VITE",
"endsPattern": "ready in" "endsPattern": "ready in"
} }
} }