5
5
"version" : " 0.2.0" ,
6
6
"configurations" : [
7
7
{
8
- "name" : " .NET Core Launch (web) " ,
8
+ "name" : " .NET Core & Vue Server " ,
9
9
"type" : " coreclr" ,
10
10
"request" : " launch" ,
11
- "preLaunchTask" : " build" ,
11
+ "logging" : {
12
+ "moduleLoad" : false
13
+ },
14
+ "env" : {
15
+ "ASPNETCORE_ENVIRONMENT" : " Development" ,
16
+ "VUE_DEV_SERVER_PROGRESS" : " true"
17
+ },
18
+ "cwd" : " ${workspaceFolder}" ,
19
+ "preLaunchTask" : " build-vue-cli-serve" ,
12
20
// If you have changed target frameworks, make sure to update the program path.
13
21
"program" : " ${workspaceFolder}/bin/Debug/net5.0/AspNetCoreVueStarter.dll" ,
14
- "args" : [],
15
- "cwd" : " ${workspaceFolder}" ,
16
- // this will kill any stray vue-cli processes, as the .NET app can't shut them down when it is killed by the debugger
17
- "postDebugTask" : " kill" ,
22
+ "args" : [
23
+ " /mode:attach"
24
+ ],
18
25
"stopAtEntry" : false ,
26
+ "sourceFileMap" : {
27
+ "/Views" : " ${workspaceFolder}/Views"
28
+ },
19
29
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
20
30
"serverReadyAction" : {
21
- "action" : " openExternally" ,
22
- "pattern" : " \\ bNow listening on:\\ s+(https?://\\ S+)"
31
+ "action" : " startDebugging" ,
32
+ "pattern" : " \\ bNow listening on:\\ s+(https?://\\ S+)" ,
33
+ "name" : " Chrome Browser"
34
+ },
35
+ // this will kill any stray vue-cli processes, as the .NET app can't shut them down when it is killed by the debugger
36
+ "postDebugTask" : " kill"
37
+ },
38
+ {
39
+ "name" : " .NET Core Web" ,
40
+ "type" : " coreclr" ,
41
+ "request" : " launch" ,
42
+ "logging" : {
43
+ "moduleLoad" : false
23
44
},
24
45
"env" : {
25
46
"ASPNETCORE_ENVIRONMENT" : " Development"
26
47
},
48
+ "cwd" : " ${workspaceFolder}" ,
49
+ "preLaunchTask" : " build" ,
50
+ // If you have changed target frameworks, make sure to update the program path.
51
+ "program" : " ${workspaceFolder}/bin/Debug/net5.0/AspNetCoreVueStarter.dll" ,
52
+ "args" : [
53
+ " /mode:start"
54
+ ],
55
+ "stopAtEntry" : false ,
27
56
"sourceFileMap" : {
28
57
"/Views" : " ${workspaceFolder}/Views"
29
- }
58
+ },
59
+ // Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
60
+ "serverReadyAction" : {
61
+ "action" : " startDebugging" ,
62
+ "pattern" : " \\ bNow listening on:\\ s+(https?://\\ S+)" ,
63
+ "name" : " Chrome Browser"
64
+ },
65
+ // this will kill any stray vue-cli processes, as the .NET app can't shut them down when it is killed by the debugger
66
+ "postDebugTask" : " kill"
30
67
},
31
68
{
32
69
"name" : " .NET Core Attach" ,
35
72
"processId" : " ${command:pickProcess}"
36
73
},
37
74
{
38
- "name" : " Launch Chrome" ,
75
+ "name" : " Chrome Browser " ,
39
76
"type" : " chrome" ,
40
77
"request" : " launch" ,
41
78
"url" : " http://localhost:5000" ,
42
- "webRoot" : " ${workspaceFolder}/ClientApp/ " ,
79
+ "webRoot" : " ${workspaceFolder}/ClientApp" ,
43
80
"breakOnLoad" : true ,
44
- "sourceMaps" : true
81
+ "sourceMaps" : true ,
45
82
},
46
83
{
47
- "name" : " Launch Firefox" ,
84
+ "name" : " Firefox Browser " ,
48
85
"type" : " firefox" ,
49
86
"request" : " launch" ,
50
87
"url" : " http://localhost:5000" ,
51
- "webRoot" : " ${workspaceFolder}/ClientApp/"
52
- }
53
- ],
54
- "compounds" : [
55
- {
56
- "name" : " Debug SPA and API (Chrome)" ,
57
- "configurations" : [
58
- " .NET Core Launch (web)" ,
59
- " Launch Chrome"
60
- ]
61
- },
62
- {
63
- "name" : " Debug SPA and API (Firefox)" ,
64
- "configurations" : [
65
- " .NET Core Launch (web)" ,
66
- " Launch Firefox"
67
- ]
88
+ "webRoot" : " ${workspaceFolder}/ClientApp"
68
89
}
69
90
]
70
91
}
0 commit comments