chore: update launch configurations and add debug build tasks

This commit is contained in:
2026-01-31 00:03:00 +01:00
parent e35f45dc4d
commit 70e115f2a0
4 changed files with 41 additions and 15 deletions

23
.vscode/launch.json vendored
View File

@@ -5,16 +5,11 @@
"name": "ASTRAIN.Api", "name": "ASTRAIN.Api",
"type": "coreclr", "type": "coreclr",
"request": "launch", "request": "launch",
"preLaunchTask": "build", "preLaunchTask": "Debug Build API",
"program": "${workspaceFolder}/src/ASTRAIN.Api/bin/Debug/net10.0/ASTRAIN.Api.dll", "program": "${workspaceFolder}/src/ASTRAIN.Api/bin/Debug/net10.0/ASTRAIN.Api.dll",
"args": [], "args": [],
"cwd": "${workspaceFolder}/src/ASTRAIN.Api", "cwd": "${workspaceFolder}/src/ASTRAIN.Api",
"stopAtEntry": false, "stopAtEntry": false,
"serverReadyAction": {
"action": "openExternally",
"pattern": "Now listening on: (https?://\\S+)",
"uriFormat": "%s"
},
"env": { "env": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }
@@ -23,15 +18,19 @@
"name": "ASTRAIN.Client", "name": "ASTRAIN.Client",
"type": "coreclr", "type": "coreclr",
"request": "launch", "request": "launch",
"preLaunchTask": "build", "preLaunchTask": "Debug Build Client",
"program": "${workspaceFolder}/src/ASTRAIN.Client/bin/Debug/net10.0/ASTRAIN.Client.dll", "program": "dotnet",
"args": [], "args": [
"cwd": "${workspaceFolder}/src/ASTRAIN.Client", "run",
"--project",
"${workspaceFolder}/src/ASTRAIN.Client"
],
"cwd": "${workspaceFolder}",
"stopAtEntry": false, "stopAtEntry": false,
"serverReadyAction": { "serverReadyAction": {
"action": "openExternally", "action": "openExternally",
"pattern": "Now listening on: (https?://\\S+)", "pattern": "\\bNow listening on:\\s+https?://\\[::\\]:(\\d+)",
"uriFormat": "%s" "uriFormat": "http://localhost:%s"
}, },
"env": { "env": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"

27
.vscode/tasks.json vendored Normal file
View File

@@ -0,0 +1,27 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Debug Build API",
"type": "process",
"command": "dotnet",
"args": [
"build",
"${workspaceFolder}/src/ASTRAIN.Api"
],
"problemMatcher": "$msCompile",
"group": "build"
},
{
"label": "Debug Build Client",
"type": "process",
"command": "dotnet",
"args": [
"build",
"${workspaceFolder}/src/ASTRAIN.Client"
],
"problemMatcher": "$msCompile",
"group": "build"
}
]
}

View File

@@ -5,7 +5,7 @@
"commandName": "Project", "commandName": "Project",
"dotnetRunMessages": true, "dotnetRunMessages": true,
"launchBrowser": false, "launchBrowser": false,
"applicationUrl": "http://localhost:5055", "applicationUrl": "http://+:5055",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }

View File

@@ -6,7 +6,7 @@
"dotnetRunMessages": true, "dotnetRunMessages": true,
"launchBrowser": true, "launchBrowser": true,
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}", "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"applicationUrl": "http://localhost:5014", "applicationUrl": "http://+:5016",
"environmentVariables": { "environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development" "ASPNETCORE_ENVIRONMENT": "Development"
} }