As in the title, I am trying to debug my program by writing to the console in xamarin forms. I have tried System.Diagnostics.Debug.WriteLine and Console.WriteLine in multiple paces and neither of them has any output that I can see in the debug output or the device log.
Edit:
See no output in Visual Studio Debug output for the following code.
using CustomRenderer;
using System;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace CarpApp
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class MainPage : ContentPage
{
private static ILogger logger = DependencyService.Get<ILogManager>().GetLog();
public MainPage()
{
InitializeComponent();
logger.Trace("Test1");
System.Diagnostics.Debug.WriteLine("Test2");
}
private void OnMessagesTapped(object sender, EventArgs args)
{
System.Diagnostics.Debug.WriteLine("Test3");
Console.WriteLine("Test4");
logger.Trace("Test5");
}
private void OnFindTapped(object sender, EventArgs args)
{
Navigation.PushAsync(new MapPage());
}
private void OnGetRidTapped(object sender, EventArgs args)
{
Navigation.PushAsync(new GetRidPage());
}
}
}