From 034f89cec15cd49c9516af42278a4949dea56805 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Mon, 1 Aug 2022 11:27:56 +0800 Subject: [PATCH 1/2] fix(Debug): `The task 'start .debug.script.mjs' cannot be tracked` --- .vscode/tasks.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 3ae1911..0fdfa46 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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.*$", + } + } } ] } From b8eaa24047de532c837b901fea6a957af86a8e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8D=89=E9=9E=8B=E6=B2=A1=E5=8F=B7?= <308487730@qq.com> Date: Mon, 1 Aug 2022 11:28:14 +0800 Subject: [PATCH 2/2] fix(Debug): `Cannot connect to the target at localhost:9229` --- .vscode/launch.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 5a3faef..66bac42 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -38,7 +38,8 @@ "name": "Debug Renderer Process", "port": 9229, "request": "attach", - "type": "pwa-chrome" + "type": "pwa-chrome", + "timeout": 60000 }, ] }