Skip to content

Commit 8d0f052

Browse files
author
linyuan.yang
committed
vscode 调试
1 parent bbdeee4 commit 8d0f052

1 file changed

Lines changed: 40 additions & 1 deletion

File tree

‎.vscode/tasks.json‎

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,45 @@
11
{
22
"version": "2.0.0",
33
"tasks": [
4+
{
5+
"label": "admin:kill",
6+
"type": "shell",
7+
"command": "npx kill-port 5173",
8+
"options": {
9+
"cwd": "${workspaceFolder}"
10+
},
11+
"problemMatcher": []
12+
},
13+
{
14+
"label": "admin:dev",
15+
"type": "shell",
16+
"isBackground": true,
17+
"command": "pnpm",
18+
"args": [
19+
"--filter",
20+
"sbot-admin",
21+
"run",
22+
"debug",
23+
"--",
24+
"--port",
25+
"5173",
26+
"--strictPort"
27+
],
28+
"options": {
29+
"cwd": "${workspaceFolder}"
30+
},
31+
"problemMatcher": {
32+
"owner": "vite",
33+
"pattern": {
34+
"regexp": ""
35+
},
36+
"background": {
37+
"activeOnStart": true,
38+
"beginsPattern": ".*",
39+
"endsPattern": "(ready in|Local:).*"
40+
}
41+
}
42+
},
443
{
544
"label": "debug:cli",
645
"type": "shell",
@@ -46,7 +85,7 @@
4685
},
4786
{
4887
"label": "launch:sbot",
49-
"dependsOn": ["debug:sbot"],
88+
"dependsOn": ["admin:kill", "debug:sbot", "admin:dev"],
5089
"dependsOrder": "sequence"
5190
}
5291
]

0 commit comments

Comments
 (0)