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

25
.vscode/launch.json vendored
View File

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

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",
"dotnetRunMessages": true,
"launchBrowser": false,
"applicationUrl": "http://localhost:5055",
"applicationUrl": "http://+:5055",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}

View File

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