Default ASP.NET Core web project contain such lines in Startup.cs:
Startup.cs
if (string.Equals(env.EnvironmentName, \"Development\", StringComparison.Ordi
In VsCode add the following to launch.json
{ "version": "0.2.0", "configurations": [ { ... "env": { "ASPNETCORE_ENVIRONMENT": "Development" } }, ... ] }