I have a simple Xamarin.Forms project that I'm running in Visual Studio, using an iphone emulator. I have the following code in App.cs:
protected override void OnStart()
{
Debug.WriteLine("---------- OnStart called!");
}
Where exactly is that supposed to output to? I don't see it in any of the Visual Studio output windows (Build, Build Order, Debug, Xamarin, Xamarin Diagnostics).
Using Console.WriteLine()
works with Device Log. Also you can filter out all device log with mono-stdout
tag.
Rider has a plugin called Logcat, when I write
Console.WriteLine("**** Hi mate");
, then I can filter the Logcat window for **** and it will show the Console.WriteLine's
This is in Xamarin Forms, for both iOS and Android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With