Xamarin.Forms - Debug.WriteLine() - where does the output go?

Viewed 33781

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).

4 Answers

It will be coming in application output window. if it is not open automatically, you can go to view -> Pads -> Application Output. This was about mac visual studio. i am not sure about windows.

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

Related