feat: update launch and task configurations for improved debugging and release builds

This commit is contained in:
Stefan
2026-09-16 21:22:10 +02:00
parent 4cac109283
commit dcfc459693
2 changed files with 39 additions and 1 deletions
+24 -1
View File
@@ -2,7 +2,7 @@
"version": "0.2.0",
"configurations": [
{
"name": "Fuchs: Debug ASP.NET Core",
"name": "Fuchs: Debug (Debug config, Development env)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build Fuchs",
@@ -23,6 +23,29 @@
"sourceFileMap": {
"/Views": "${workspaceFolder}/Fuchs/Views"
}
},
{
"name": "Fuchs: Launch (Release config, Production env)",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build Fuchs Release",
"program": "${workspaceFolder}/Fuchs/bin/Release/net10.0/Fuchs.dll",
"args": [],
"cwd": "${workspaceFolder}/Fuchs",
"stopAtEntry": false,
"justMyCode": true,
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)",
"uriFormat": "%s"
},
"env": {
"ASPNETCORE_ENVIRONMENT": "Production",
"ASPNETCORE_URLS": "https://localhost:63661;http://localhost:63662"
},
"sourceFileMap": {
"/Views": "${workspaceFolder}/Fuchs/Views"
}
}
]
}
+15
View File
@@ -19,6 +19,21 @@
"isDefault": true
}
},
{
"label": "build Fuchs Release",
"type": "process",
"command": "dotnet",
"args": [
"build",
"${workspaceFolder}/Fuchs/Fuchs.csproj",
"--configuration",
"Release",
"/p:RestoreIgnoreFailedSources=true",
"/p:RestoreConfigFile=${workspaceFolder}/NuGet.config"
],
"problemMatcher": "$msCompile",
"group": "build"
},
{
"label": "gulp: all",
"type": "shell",