64 lines
2.4 KiB
JSON
64 lines
2.4 KiB
JSON
{
|
|
"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/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
|
|
"name": ".NET Core Launch (web)",
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"preLaunchTask": "build",
|
|
// If you have changed target frameworks, make sure to update the program path.
|
|
"program": "${workspaceFolder}/bin/Debug/net7.0/OI.Metrology.Client.dll",
|
|
"args": [],
|
|
"cwd": "${workspaceFolder}",
|
|
"stopAtEntry": false,
|
|
// 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+)"
|
|
},
|
|
"env": {
|
|
"ASPNETCORE_ENVIRONMENT": "Development"
|
|
},
|
|
"sourceFileMap": {
|
|
"/Views": "${workspaceFolder}/Views"
|
|
}
|
|
},
|
|
{
|
|
"name": "Launch", // opens a edge window, navigates and click debugs on mine
|
|
"type": "blazorwasm",
|
|
"request": "launch",
|
|
"cwd": "${workspaceFolder}",
|
|
"browser": "edge",
|
|
"url": "https://localhost:7023", // Tell launch where to find site
|
|
"timeout": 120000, // Allows time for the site to launch
|
|
},
|
|
{
|
|
"name": "Watch", // Hot reload works on mine no debug
|
|
"type": "coreclr",
|
|
"request": "launch",
|
|
"cwd": "${workspaceFolder}",
|
|
"program": "dotnet",
|
|
"args": [
|
|
"watch",
|
|
"--launch-profile",
|
|
"Phares-Development",
|
|
"--project",
|
|
".",
|
|
"--verbose" // Let's us confirm browser connects with hot reload capabilities
|
|
],
|
|
"preLaunchTask": "build" // Ensure we don't watch an unbuilt site
|
|
}
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "* Hot Reload with Debug - Launch",
|
|
"configurations": [
|
|
"Watch",
|
|
"Launch"
|
|
]
|
|
}
|
|
]
|
|
} |