feat: added VSCode Windows debugging entry

This commit is contained in:
Xiaohan-Tian
2026-05-14 18:03:58 -07:00
parent 64dda5bb01
commit 0e6e2736d0
2 changed files with 37 additions and 0 deletions
+14
View File
@@ -14,6 +14,20 @@
"webpack://?:*/*": "${webRoot}/*" "webpack://?:*/*": "${webRoot}/*"
}, },
"preLaunchTask": "npm: dev" "preLaunchTask": "npm: dev"
},
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost (Windows)",
"url": "http://localhost:5173",
"webRoot": "${workspaceFolder}",
"sourceMaps": true,
"sourceMapPathOverrides": {
"/@fs/*": "${webRoot}/*",
"webpack:///./~/*": "${webRoot}/node_modules/*",
"webpack://?:*/*": "${webRoot}/*"
},
"preLaunchTask": "npm: dev (Windows)"
} }
] ]
} }
+23
View File
@@ -23,6 +23,29 @@
"endsPattern": "ready in .*ms" "endsPattern": "ready in .*ms"
} }
} }
},
{
"type": "npm",
"script": "dev",
"label": "npm: dev (Windows)",
"detail": "vite",
"isBackground": true,
"options": {
"shell": {
"executable": "cmd.exe",
"args": ["/d", "/c"]
}
},
"problemMatcher": {
"pattern": {
"regexp": "^.*$"
},
"background": {
"activeOnStart": true,
"beginsPattern": ".*",
"endsPattern": "ready in .*ms"
}
}
} }
] ]
} }