Fixed client debug

This commit is contained in:
dpassoni
2023-01-12 17:22:49 +01:00
parent 91433eedc6
commit c21f03b050
7 changed files with 34 additions and 40 deletions

View File

@@ -9,7 +9,10 @@
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}\\.."
"webRoot": "${workspaceFolder}/public/",
"sourceMapPathOverrides": {
"src/*": "${workspaceFolder}/src/*"
}
}
]
}

View File

@@ -1,41 +1,33 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "start",
"isBackground": true,
"presentation": {
"focus": true,
"panel": "dedicated"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"owner": "typescript",
"source": "ts",
"applyTo": "closedDocuments",
"fileLocation": [
"relative",
"${cwd}"
],
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "Compiled |Failed to compile."
{
"type": "npm",
"script": "start",
"problemMatcher": [
{
"pattern": [
{
"regexp": ".",
"file": 1,
"location": 2,
"message": 3
}
],
"background": {
"activeOnStart": true,
"beginsPattern": ".",
"endsPattern": ".",
}
}
],
"isBackground": true,
"label": "npm: start",
"detail": "node ./bin/www",
"group": {
"kind": "build",
"isDefault": true
}
}
},
"options": {
"cwd": "${workspaceFolder}"
}
}
]
}
}