launch.json
2.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
// 调试 Rcs.Api Web API 项目
"name": "Debug Rcs.Api",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build",
"program": "${workspaceFolder}/src/Rcs.Api/bin/Debug/net8.0/Rcs.Api.dll",
"args": [],
"cwd": "${workspaceFolder}/src/Rcs.Api",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)",
"uriFormat": "%s/swagger"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"console": "internalConsole"
},
{
// 调试 Rcs.Api 并启动所有 Docker 服务
"name": "Debug Rcs.Api with Docker Services",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "docker-build",
"program": "${workspaceFolder}/src/Rcs.Api/bin/Debug/net8.0/Rcs.Api.dll",
"args": [],
"cwd": "${workspaceFolder}/src/Rcs.Api",
"stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)",
"uriFormat": "%s/swagger"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"console": "internalConsole"
},
{
// 附加到现有进程(用于附加调试)
"name": "Attach to Process",
"type": "coreclr",
"request": "attach",
"processId": "${command:pickProcess}"
},
{
// 调试运行中的 Rcs.Api 进程
"name": "Attach to Rcs.Api Process",
"type": "coreclr",
"request": "attach",
"processName": "Rcs.Api",
"processId": "${command:pickProcess}"
}
],
"compounds": [
{
// 同时启动 API 和附加调试的组合配置
"name": "Launch and Attach Debug",
"configurations": [
"Debug Rcs.Api"
],
"stopAll": true
}
]
}