I have a problem with debugging a ASP.NET Core project. It's about https://github.com/jasontaylordev/CleanArchitecture. You can start it with "dotnet run". I start it with "dotnet run waitfordebugger".
This is the snippet of the main method. The program sleeps for 20 seconds so that I can attach Visual studio to the process.
public async static Task Main(string[] args)
{
if (args[0] == "waitfordebugger")
{
Thread.Sleep(20000); // Wait 20 Seconds
}
int i = 0;
i++;
I have set a breakpoint at "i++" in vs, started the application with "dotnet run waitfordebugger" and attached vs to the process. The problem is that the breakpoint is not hit. I get this warning:"The breakpoint will not currently be hit. No symbols have been loaded for this document.". Any ideas?