What is the simplest way to run a C# program in linux (eg with `dotnet`) and be able to see the output of Debug.Print statements? All the instructions I find on Google only show how to do this in VS Code and I am not currently using VS Code.

@mcc Does it work to add System.Console.Out as a trace listener?

https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.debug.listeners?view=netframework-4.8.1#examples

(I have no idea why the docs keep redirecting to .NET Framework 4.8.1 instead of .NET neƩ .NET Core.)

Debug.Listeners Property (System.Diagnostics)

Gets the collection of listeners that is monitoring the debug output.

@xgranade @mcc

lol

The main thing I work on is still using .Net Framework 4.8 - because we just don't have the staff or time to sink a big effort into upgrading - so of course any time *I* try to look anything up, Microsoft directs me to the documentation for the latest .NET aka Core.

MS must be doing some very sophisticated context tracking to so consistently send users to the wrong docs version.