This turned out to be my "simplest" solution! https://wandering.shop/@xgranade/112961883517691345
It does turn out "Debug.Listeners" was renamed to "Trace.Listeners" in .NET CORE so the actual solution is just stuffing these two lines at the top of the program:
var myWriter = new TextWriterTraceListener(System.Console.Out);
Trace.Listeners.Add(myWriter);
@[email protected] 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.)
@mcc
I used DuckDuckGo to search:
dotnet core debug.print -"VS code" -"Visual Studio"
The third link was: https://learn.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-stack
Which led me to:
https://learn.microsoft.com/en-us/dotnet/core/diagnostics/tools-overview?source=recommendations
Which suggests VSCode... but also mentions:
https://learn.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-sos
Which supposedly supports lldb?
I then used DDG to search:
dotnet core sos debug print
Which led to this blog post:
https://devblogs.microsoft.com/premier-developer/debugging-net-core-with-sos-everywhere/
Good luck!