In visual studio 2017 with xamarin every time I got an error I got into Break Mode without any information regarding the exception.
According to this question in a different forum you can get meaningful message about the error, but doesn't specify how:
But I try same code in my system and only got break mode
: what I have to do?
I create a button in the MainActivity class, and the break pause happen when try access a list element in the empty list.
public class MainActivity : Activity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
// Set our view from the "main" layout resource
SetContentView(Resource.Layout.Main);
Button button = FindViewById<Button>(Resource.Id.getWeatherButton);
button.Click += async (sender, e) =>
{
var x = new List<int>();
var y = x[3];
};
}