Minor fixes + changed debug launch.json file

This commit is contained in:
2024-09-04 15:51:56 +02:00
parent 286a9eff72
commit ada6967234
5 changed files with 55 additions and 31 deletions

34
.vscode/launch.json vendored
View File

@@ -1,38 +1,18 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md
"name": ".NET Rest Api",
"type": "coreclr",
"type": "DotNetAutoAttach",
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/MainProject/bin/Debug/net8.0/MainProject.dll",
"name": ".NET Core Watch: MainProject",
"args": [],
"cwd": "${workspaceFolder}",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false,
"env": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_URLS": "https://localhost:5000;https://localhost:5001",
"ASPNETCORE_DETAILEDERRORS": "1",
"ASPNETCORE_SHUTDOWNTIMEOUTSECONDS": "3"
"ASPNETCORE_ENVIRONMENT": "Development"
},
// Enable launching a web browser when ASP.NET Core starts. For more information: https://aka.ms/VSCode-CS-LaunchJson-WebBrowser
"serverReadyAction": {
"action": "openExternally",
"pattern": "\\bNow listening on:\\s+(https?://\\S+)",
"uriFormat": "%s/swagger"
},
},
{
"name": ".NET Core Attach",
"type": "coreclr",
"request": "attach"
"project": "MainProject"
}
]
}