Score:0

How can I debug a .NET Core 5.0 console application in Rider?

us flag

I have installed .NET Core 5.0 via Snap:

sudo snap install --classic dotnet-sdk --channel=5.0/stable
sudo snap alias dotnet-sdk.dotnet dotnet

JetBrains Rider (also installed through Snap) can detect this version and build the template "Hello World" console application. However:

  1. When I run the solution, "Hello World" does not appear in the output. I get only:
/home/user/Documents/ConsoleTest/bin/Release/net5.0/ConsoleTest

Process finished with exit code 139.
  1. When I attempt to debug the solution (after putting a breakpoint on the Console.WriteLine line), I get the following error:
/home/user/Documents/ConsoleTest/ConsoleTest/bin/Release/net5.0/ConsoleTest 
One or more errors occurred. (Started a process for debugging, but no CoreCLR runtime was seen to be loaded within the 00:00:16 time limit.)

How do I configure dotnet-sdk so that the console application can be executed and/or debugged as expected?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.