|
| 1 | +{ |
| 2 | + "version": "0.2.0", |
| 3 | + "configurations": [ |
| 4 | + // ========================================================================== |
| 5 | + // .NET API Debugging |
| 6 | + // ========================================================================== |
| 7 | + { |
| 8 | + "name": "API: Debug", |
| 9 | + "type": "coreclr", |
| 10 | + "request": "launch", |
| 11 | + "preLaunchTask": "API: Build", |
| 12 | + "program": "${workspaceFolder}/src/Luminous.Api/bin/Debug/net10.0/Luminous.Api.dll", |
| 13 | + "args": [], |
| 14 | + "cwd": "${workspaceFolder}/src/Luminous.Api", |
| 15 | + "stopAtEntry": false, |
| 16 | + "env": { |
| 17 | + "ASPNETCORE_ENVIRONMENT": "Development", |
| 18 | + "ASPNETCORE_URLS": "http://localhost:5000" |
| 19 | + }, |
| 20 | + "console": "integratedTerminal", |
| 21 | + "serverReadyAction": { |
| 22 | + "action": "openExternally", |
| 23 | + "pattern": "\\bNow listening on:\\s+(https?://\\S+)", |
| 24 | + "uriFormat": "%s/swagger" |
| 25 | + } |
| 26 | + }, |
| 27 | + { |
| 28 | + "name": "API: Debug (HTTPS)", |
| 29 | + "type": "coreclr", |
| 30 | + "request": "launch", |
| 31 | + "preLaunchTask": "API: Build", |
| 32 | + "program": "${workspaceFolder}/src/Luminous.Api/bin/Debug/net10.0/Luminous.Api.dll", |
| 33 | + "args": [], |
| 34 | + "cwd": "${workspaceFolder}/src/Luminous.Api", |
| 35 | + "stopAtEntry": false, |
| 36 | + "env": { |
| 37 | + "ASPNETCORE_ENVIRONMENT": "Development", |
| 38 | + "ASPNETCORE_URLS": "https://localhost:5001;http://localhost:5000" |
| 39 | + }, |
| 40 | + "console": "integratedTerminal", |
| 41 | + "serverReadyAction": { |
| 42 | + "action": "openExternally", |
| 43 | + "pattern": "\\bNow listening on:\\s+(https?://\\S+)", |
| 44 | + "uriFormat": "%s/swagger" |
| 45 | + } |
| 46 | + }, |
| 47 | + { |
| 48 | + "name": "API: Attach to Process", |
| 49 | + "type": "coreclr", |
| 50 | + "request": "attach", |
| 51 | + "processId": "${command:pickProcess}" |
| 52 | + }, |
| 53 | + |
| 54 | + // ========================================================================== |
| 55 | + // .NET Tests Debugging |
| 56 | + // ========================================================================== |
| 57 | + { |
| 58 | + "name": "Tests: Debug Domain", |
| 59 | + "type": "coreclr", |
| 60 | + "request": "launch", |
| 61 | + "preLaunchTask": "Solution: Build All", |
| 62 | + "program": "dotnet", |
| 63 | + "args": [ |
| 64 | + "test", |
| 65 | + "${workspaceFolder}/tests/Luminous.Domain.Tests/Luminous.Domain.Tests.csproj", |
| 66 | + "--no-build" |
| 67 | + ], |
| 68 | + "cwd": "${workspaceFolder}", |
| 69 | + "console": "integratedTerminal", |
| 70 | + "stopAtEntry": false |
| 71 | + }, |
| 72 | + { |
| 73 | + "name": "Tests: Debug Application", |
| 74 | + "type": "coreclr", |
| 75 | + "request": "launch", |
| 76 | + "preLaunchTask": "Solution: Build All", |
| 77 | + "program": "dotnet", |
| 78 | + "args": [ |
| 79 | + "test", |
| 80 | + "${workspaceFolder}/tests/Luminous.Application.Tests/Luminous.Application.Tests.csproj", |
| 81 | + "--no-build" |
| 82 | + ], |
| 83 | + "cwd": "${workspaceFolder}", |
| 84 | + "console": "integratedTerminal", |
| 85 | + "stopAtEntry": false |
| 86 | + }, |
| 87 | + { |
| 88 | + "name": "Tests: Debug API", |
| 89 | + "type": "coreclr", |
| 90 | + "request": "launch", |
| 91 | + "preLaunchTask": "Solution: Build All", |
| 92 | + "program": "dotnet", |
| 93 | + "args": [ |
| 94 | + "test", |
| 95 | + "${workspaceFolder}/tests/Luminous.Api.Tests/Luminous.Api.Tests.csproj", |
| 96 | + "--no-build" |
| 97 | + ], |
| 98 | + "cwd": "${workspaceFolder}", |
| 99 | + "console": "integratedTerminal", |
| 100 | + "stopAtEntry": false |
| 101 | + }, |
| 102 | + { |
| 103 | + "name": "Tests: Debug All", |
| 104 | + "type": "coreclr", |
| 105 | + "request": "launch", |
| 106 | + "preLaunchTask": "Solution: Build All", |
| 107 | + "program": "dotnet", |
| 108 | + "args": ["test", "--no-build"], |
| 109 | + "cwd": "${workspaceFolder}", |
| 110 | + "console": "integratedTerminal", |
| 111 | + "stopAtEntry": false |
| 112 | + }, |
| 113 | + |
| 114 | + // ========================================================================== |
| 115 | + // Angular Web App Debugging |
| 116 | + // ========================================================================== |
| 117 | + { |
| 118 | + "name": "Web: Debug in Chrome", |
| 119 | + "type": "chrome", |
| 120 | + "request": "launch", |
| 121 | + "preLaunchTask": "Web: Start Dev Server", |
| 122 | + "url": "http://localhost:4200", |
| 123 | + "webRoot": "${workspaceFolder}/clients/web/src", |
| 124 | + "sourceMapPathOverrides": { |
| 125 | + "webpack:/*": "${webRoot}/*" |
| 126 | + } |
| 127 | + }, |
| 128 | + { |
| 129 | + "name": "Web: Debug in Edge", |
| 130 | + "type": "msedge", |
| 131 | + "request": "launch", |
| 132 | + "preLaunchTask": "Web: Start Dev Server", |
| 133 | + "url": "http://localhost:4200", |
| 134 | + "webRoot": "${workspaceFolder}/clients/web/src", |
| 135 | + "sourceMapPathOverrides": { |
| 136 | + "webpack:/*": "${webRoot}/*" |
| 137 | + } |
| 138 | + }, |
| 139 | + { |
| 140 | + "name": "Web: Attach to Chrome", |
| 141 | + "type": "chrome", |
| 142 | + "request": "attach", |
| 143 | + "port": 9222, |
| 144 | + "webRoot": "${workspaceFolder}/clients/web/src" |
| 145 | + } |
| 146 | + ], |
| 147 | + "compounds": [ |
| 148 | + // ========================================================================== |
| 149 | + // Full Stack Debugging |
| 150 | + // ========================================================================== |
| 151 | + { |
| 152 | + "name": "Full Stack: API + Web (Chrome)", |
| 153 | + "configurations": ["API: Debug", "Web: Debug in Chrome"], |
| 154 | + "stopAll": true, |
| 155 | + "presentation": { |
| 156 | + "hidden": false, |
| 157 | + "group": "Full Stack", |
| 158 | + "order": 1 |
| 159 | + } |
| 160 | + }, |
| 161 | + { |
| 162 | + "name": "Full Stack: API + Web (Edge)", |
| 163 | + "configurations": ["API: Debug", "Web: Debug in Edge"], |
| 164 | + "stopAll": true, |
| 165 | + "presentation": { |
| 166 | + "hidden": false, |
| 167 | + "group": "Full Stack", |
| 168 | + "order": 2 |
| 169 | + } |
| 170 | + } |
| 171 | + ] |
| 172 | +} |
0 commit comments