Merge pull request #54 from electron-vite/fix/220801-debug

The task 'start .debug.script.mjs' cannot be tracked | Cannot connect to the target at localhost:9229
This commit is contained in:
草鞋没号 2022-08-01 16:53:12 +08:00 committed by GitHub
commit 3efcb1a27d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 2 deletions

3
.vscode/launch.json vendored
View File

@ -38,7 +38,8 @@
"name": "Debug Renderer Process",
"port": 9229,
"request": "attach",
"type": "pwa-chrome"
"type": "pwa-chrome",
"timeout": 60000
},
]
}

18
.vscode/tasks.json vendored
View File

@ -8,7 +8,23 @@
"type": "shell",
"command": "node .vscode/.debug.script.mjs",
"isBackground": true,
"problemMatcher": []
"problemMatcher": {
"owner": "typescript",
"fileLocation": "relative",
"pattern": {
"regexp": "^([a-zA-Z]\\:\/?([\\w\\-]\/?)+\\.\\w+):(\\d+):(\\d+): (ERROR|WARNING)\\: (.*)$",
"file": 1,
"line": 3,
"column": 4,
"code": 5,
"message": 6
},
"background": {
"activeOnStart": true,
"beginsPattern": "^.*building for development.*$",
"endsPattern": "built in [0-9]*ms.*$",
}
}
}
]
}