In my case it does not work even running from visual studio code with "name": ".NET Core Launch (web)",
I am using linux.
I have many of these messages:
'/usr/share/dotnet/shared/Microsoft.NETCore.App/5.0.1/System.Reflection.Metadata.dll' è stato caricato. Caricamento dei simboli ignorato. Il modulo è ottimizzato e l'opzione del debugger 'Solo codice utente' è abilitata.
Unfortunately we haven't experienced this error with the built-in .NET framework assemblies and are not sure what may be causing it. You can try creating a brand new application with the dotnet CLI and see if debugging works there. Then you can compare the configurations.